| Audio technology | How interruptions work |
|---|---|
| AVFoundationframework | 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
最新推荐文章于 2017-05-24 20:30:54 发布
本文介绍了不同音频技术下处理音频中断的方法。使用AVFoundation框架时,系统会自动暂停播放或录音并提供委托方法来通知应用程序中断的开始和结束。对于AudioQueueServices及I/O音频单元技术,开发者需要自行实现中断监听回调函数或使用AVAudioSession中断委托方法来保存和恢复播放位置,并重新激活音频会话。使用OpenAL进行播放时,除了实现上述方法外,还需要管理OpenAL上下文。SystemSoundServices播放的声音在中断时会静音并在中断结束后自动恢复。
7259

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



