Play and record simultaneously using Core Audio in iOS

I need to play and record at the same time using Core Audio. I really don't want to use the AVFoundation API (AVAudioPlayer + AVAudioRecorder) for this, as I am creating a music application and cannot have any lag problems.

I reviewed the following source code from Apple:
aurioTouch
Mixerhost

I have already reviewed the following posts:
iOS: sample code for recording and playing simultaneously
Record and play sound simultaneously

I still don't understand how I can play and record the same thing at the same time using Core Audio. Any indications of how I can achieve this will be very noticeable. Any pointers to any sample source code will also be very helpful.

+7
source share
1 answer

The RemoteIO audio device can be used for simultaneous recording and playback. There are many examples of recording using RemoteIO (aurioTouch) and playback using RemoteIO. Just enable both block input and single output and handle both buffer callbacks. Example here

+4
source

All Articles