iOS: Sample code for simultaneous record and playback

后端 未结 3 1072
伪装坚强ぢ
伪装坚强ぢ 2020-11-27 17:24

I\'m designing a simple proof of concept for multitrack recorder.

Obvious starting point is to play from file A.caf to headphones while simultaneously recording micr

3条回答
  •  一整个雨季
    2020-11-27 17:48

    I had this problem and I solved it in my project simply by changing the PreferredHardwareIOBufferDuration parameter of the AudioSession. I think I have just 6ms latency now, that is good enough for my app.

    Check this answer that has a good explanation.

提交回复
热议问题