AudioUnit sidechain
AudioUnit sidechain
- Subject: AudioUnit sidechain
- From: Antoine Misout <email@hidden>
- Date: Mon, 16 May 2005 00:08:22 -0400
I'm having trouble adding a sidechain to my audiounits. I'm trying to
do 2 input bus, 1 output bus, same channel configuration for both
input bus.
AULab/Logic can see/configure the sidechain without problem.
In AULab, when the sidechain is not connected (HasInput(1) == false),
everything works. In Logic, even when no sidechain is specified, it
seems to connect it to something (silence?).
In any case, when the sidechain is connected, I get garbage audio
from it.
Here's what I'm doing, in pseudo code:
Render()
{
// [get main input info]
if (HasInput(1))
{
AUInputElement *theInput = GetInput(1);
ComponentResult result = theInput->PullInput
(ioActionFlags, inTimeStamp, 1 /* element */, nFrames);
if (result != noErr) return result;
LOG("pulled sidechain\n")
}
else
[point buffers to an internal silence buffer]
const AudioBufferList & sideInBuffer = GetInput(1)->GetBufferList();
// [do process and output]
}
No error are returned anywhere. The resulting AudioUnit passes
happily auval (which never seems to test/connect the sidechain).
Any thoughts/code ? I've tried googling and greping the doc, without
success..
Regards,
Antoine
_______________________________________________
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