AVAudioRecorder not working on iPhone 5S

前端 未结 3 523
渐次进展
渐次进展 2020-12-14 21:34

So I\'m using an AVAudioRecorder to record audio alongside an AVCaptureSession that is recording video (I know this is odd, but for my situation I need to record them sepera

3条回答
  •  失恋的感觉
    2020-12-14 22:15

    I had this same problem - and the answer proved to be related to AVAudioSession. I needed to set the audio session category to PlayAndRecord. Other parts of my application were setting it to Ambient. This post https://stackoverflow.com/a/10287793/1009125 gave me the answer. Hope this helps someone, I lost a Sunday to this one.

提交回复
热议问题