iPhone: Microphone and Mixer
iPhone: Microphone and Mixer
- Subject: iPhone: Microphone and Mixer
- From: Paul Slocum <email@hidden>
- Date: Wed, 6 Oct 2010 23:18:44 -0400
I'm trying to record from the microphone and play audio at the same
time. I'm using a RemoteIO and a 3DMixer unit. My question is: how
do I configure the two audio units to do this? I can get the 3dmixer
and the microphone to work separately, but not together.
My current design is to hook up the mixer's output to the RemoteIO
input 0 and handle the RemoteIO's microphone data in one of the mixer
input callbacks using AudioUnitRender. However, when I call
AudioUnitRender from the mixer callback to get the microphone data, I
just get garbage. I can't figure out why. When I disable the mixer
and set a callback on the RemoteIO's input, the microphone data that I
grab with AudioUnitRender is correct. Why do I get garbage when I try
to read the microphone data from the mixer callback?
PS: I am using kAudioSessionCategory_PlayAndRecord
-paul
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden