RenderCallbacks Disconnecting
RenderCallbacks Disconnecting
- Subject: RenderCallbacks Disconnecting
- From: "Erickson, Mark" <email@hidden>
- Date: Thu, 12 Mar 2009 13:34:35 -0500
- Acceptlanguage: en-US
- Thread-topic: RenderCallbacks Disconnecting
Title: RenderCallbacks Disconnecting
I’ve got 3 audiounits in my graph.
AUFXUnit -> MIXERUnit -> OUTPUTUnit
The following code snippet works with the section commented out.
// begin snippet
verify_noerr (AUGraphConnectNodeInput (mGraph, myAUFXNode, 0, myMixerNode, 0));
// set render callbacks
AURenderCallbackStruct rcbs;
rcbs.inputProc = &renderInput1;
rcbs.inputProcRefCon = &d;
verify_noerr (AudioUnitSetProperty( myAUFXUnit,
kAudioUnitProperty_SetRenderCallback,
kAudioUnitScope_Input,
0,
&rcbs,
sizeof(rcbs)));
/*
AURenderCallbackStruct rcbs2;
rcbs2.inputProc = &renderInput2;
rcbs2.inputProcRefCon = &d;
verify_noerr (AudioUnitSetProperty( myMixerUnit,
kAudioUnitProperty_SetRenderCallback,
kAudioUnitScope_Input, // or kAudioUnitScope_Output
0,
&rcbs2,
sizeof(rcbs2)));
*/
verify_noerr (AUGraphUpdate(mGraph, NULL) == noErr);
verify_noerr (AUGraphInitialize(mGraph) == noErr);
verify_noerr (AUGraphStart(mGraph) == noErr);
// end snippet
However, if I uncomment this, the second RenderCallback functions but the first RenderCallback stops working.
Am I doing something wrong?
Is it possible to have 2 callbacks here?
Thanks
Mark
_______________________________________________
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