Recording from Mic and sending to mixer
Recording from Mic and sending to mixer
- Subject: Recording from Mic and sending to mixer
- From: Nauman Sulaiman <email@hidden>
- Date: Thu, 11 Nov 2010 08:37:18 +0000 (GMT)
Hi, i have the following AUGraph on IPhone 4 SDK device 3GS
MIc--> RIO ----> Mixer1
I use the following code to connect the RIO input to Mixer1.
result = AUGraphConnectNodeInput (processingGraph, iONode, 1, mixerNode1, 1 );
I also have another callback on Mixer1 to get some audio i need to mix with the recorded audio. When i call AudioUnitRender on the output of Mixer1 in my app the callback for Mixer1 gets called but the resultant output samples do not contain the audio from the mic which has been wired with direct connection to mixer, only the samples filled in by callback.
Am i right in thinking this won't work with direct connection. Do i need to setup separate callback for the output of INPUT of the RIO and call AudioUnitRender directly on this put the samples in a buffer and then read in a callback of the mixer?
I would ideally like to do this with a direct connection which would save copying into buffer and reading out but need to know if this is actually possible.
Thanks
_______________________________________________
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