multiple AVAudioRecorder instances

戏子无情 提交于 2019-12-05 18:30:55

figured the problem out: the audio session is not the problem, it's the audio format.

if you want to record into multiple files using multiple AVAudioRecorders, you have to use uncompressed audio format(s). i assume the HW assisted encoding is used by one AVAudioRecorder and thus every further AVAudioRecorder can't use it simultaniously.

one AVAudioRecorder using a compressed format (e.g. kAudioFormatMPEG4AAC) works fine, but every further recorder has to use an uncompressed audio format. if all AVAudioRecorder instances use a uncompressed format (e.g. kAudioFormatLinearPCM) it also works.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!