IOS中录音后无法播放游戏音效
原因是在录音的时候AVAudioSession 的category 设置成AVAudioSessionCategoryRecord, 在结束录音时设置成了 AVAudioSessionCategoryAmbient.
而且不能设置成[[AVAudioSession sharedInstance] setActive: NO error:nil];

http://blog.sina.com.cn/s/blog_7ea0400d0102vjur.html 该链接中有各音频种设置的详细描述。

浙公网安备 33010602011771号