Re: RemoteIO Question
Re: RemoteIO Question
- Subject: Re: RemoteIO Question
- From: Pier <email@hidden>
- Date: Wed, 07 Nov 2012 16:46:12 +0800
Hi Hari,
I couldn't get pre-render to work for me, managed to get my desired effect (monitoring and playback of a pre-saved buffer into bus 0 and 1 of mixer input) by doing the following code and getting the recordingCallback to write to my monitoring buffer, which the monitoringCallback of the mixer input gets data from.
However, now I would like to record this "mixed" signal (of both monitoring and pre-saved buffer) and find that I have already "used" up my remoteIO input bus and output bus for recording mic and playback to speakers respectively.
Again, I'm stuck... :/ Could the only choice be to mix manually?
If I go back to trying to get AudioUnitAddRenderNotify to work does it free up the inputBus on remoteIO for me to record ?
AURenderCallbackStruct callbackStruct;
callbackStruct.inputProc = recordingCallback;
callbackStruct.inputProcRefCon = &rio;
status = AudioUnitSetProperty(_remoteIOUnit,
kAudioOutputUnitProperty_SetInputCallback,
kAudioUnitScope_Global,
kInputBus,
&callbackStruct,
sizeof(callbackStruct));
if (noErr != status) { NSLog(@"Set input callback error"); return; }
Pier.
_______________________________________________
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