| Audio technology | How interruptions work |
|---|---|
| AV Foundation framework | The If you want to save and restore playback position between application launches, save playback position on interruption as well as on application quit. |
| Audio Queue Services, I/O audio unit | These technologies put your application in control of handling interruptions. You are responsible for saving playback or recording position and reactivating your audio session after interruption ends. As explained in “Responding to Audio Session Interruptions,” implement the If using these technologies for hardware-assisted encoding to AAC, refer to “Hardware-Assisted Codecs and Audio Interruptions.” |
| OpenAL | When using OpenAL for playback, implement the |
| System Sound Services | Sounds played using System Sound Services go silent when an interruption starts. They can automatically be used again if the interruption ends. Applications cannot influence the interruption behavior for sounds that use this playback technology. |
ios audio playback technologies
本文详细介绍了根据音频技术的中断处理技巧,包括AV Foundation框架下AVAudioPlayer和AVAudioRecorder类的委托方法用于更新用户界面,在中断开始和结束时进行操作。还讨论了在不同音频处理技术如AudioQueueServices、OpenAL和SystemSoundServices中处理中断的方法,以及如何保存和恢复播放位置以应对应用重启情况。


被折叠的 条评论
为什么被折叠?



