Hey everyone,
I'm working on adding side chain support to a compressor I'm developing. Using the code from the IPlugSideChain example, I've been able to get the side chain input correctly. The problem comes with detecting when a side chain input is connected. The examples uses these booleans in ProcessDoubleReplacing:
Code:
bool in1ic = IsInChannelConnected(0);
bool in2ic = IsInChannelConnected(1);
bool in3ic = IsInChannelConnected(2);
bool in4ic = IsInChannelConnected(3);
printf("%i %i %i %i, ------------------------- \n", in1ic, in2ic, in3ic, in4ic);
However the second two bools are always true - the output is always: "1 1 1 1, ------------------------- ". This happens when running both the standalone and the AU build in Live.
Because I can't detect when the side chain is connected, I can't properly tell the plugin when to compress using the main input or the side chain. Any help/insights would greatly appreciated.
I'm using Youlean's branch, and my project is originally duplicated from the IPlugEffectCairoGraphics example.
Thanks!
MSK