Re: iPhone: Microphone and Mixer
Re: iPhone: Microphone and Mixer
- Subject: Re: iPhone: Microphone and Mixer
- From: William Stewart <email@hidden>
- Date: Tue, 12 Oct 2010 17:55:58 -0700
There seems to be a mismatch in the format of the audio that you are getting from the remote IO and the format of the audio you are providing to the 3D mixer. Check that they are both the same format (StreamFormat property).
The example code from WWDC this year sets up a scenario very similar to this
BIll
On Oct 6, 2010, at 8:18 PM, Paul Slocum wrote:
> 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
_______________________________________________
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