Pangolin
Pangolin

Reputation: 7444

Playing sound while recording

Is it possible to play back a sound while it is recording it, live?

I found this question/answer which shows how to record sound with AVAudioSession.

If so, at what should I be looking at? Can AVAudioSession play sound as well?

(Basically like an amplifier, outputting the sound as it comes in)

Upvotes: 2

Views: 808

Answers (1)

hotpaw2
hotpaw2

Reputation: 70733

You can use either the Audio Queue API or the RemoteIO Audio Unit for streaming audio record and play. The RemoteIO unit will have a much lower latency. Either way, you should initialize your audio session and set it for kAudioSessionCategory_PlayAndRecord.

Upvotes: 3

Related Questions