AVAudioSession
AVAudioSession
是苹果用来管理App对音频硬件(I / O)的资源使用;比如说:
- 设置APP与其他APP是否混音,或者中断、降低其他App声音
- 手机静音下,APP是否可以播放声音
- 指定音频输入或者输出设备
- 是否支持APP录制,是否可以边录制边播放
- 声音中断的优先级(电话接入中断APP音频处理)
在APP的运行过程中,AudioSession的配置影响所有的音频活动。你可以查询Audio Session来发现设备的硬件特性。如声道数(channel count)、采样率(sample rate)、和音频输入的可用性(availability of audio unit)
AVAudioSession 激活
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick Start
Create a new post
1 | $ hexo new "My New Post" |
More info: Writing