ComplexPlayThru with a kAudioUnitType_Effect unit at the input side, how?
ComplexPlayThru with a kAudioUnitType_Effect unit at the input side, how?
- Subject: ComplexPlayThru with a kAudioUnitType_Effect unit at the input side, how?
- From: Roni Music <email@hidden>
- Date: Mon, 15 Jan 2007 16:13:21 +0100
Hi,
I'm looking at the ComplexPlayThru example and am trying to figure
out how I can add a
kAudioUnitType_Effect unit to the input side of the AUHal, meaning
that when AudioUnitRender()
is called in the InputProc callback, the returned samples are already
processed by the kAudioUnitType_Effect.
If I get it right, I need to connect the output of the input device
to the input of the effect unit:
(mInputUnit and mEffectUnit are now opened OK)
AudioUnitConnection myConnection;
myConnection.sourceAudioUnit = mInputUnit;
myConnection.sourceOutputNumber = 1;
myConnection.destInputNumber = 0;
err = AudioUnitSetProperty (mEffectUnit,
kAudioUnitProperty_MakeConnection,
kAudioUnitScope_Input,
0,
&myConnection,
sizeof (myConnection));
But how do I connect the output of the effect unit?
And to what?
Thanks for any clarification.
Rolf
_______________________________________________
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