I’m getting a loud feedback noise when opening our plugin in logic x.
We have 16 stereo output channels and one input and a side chain:
BusesProperties()
.withOutput ("Output 1", AudioChannelSet::stereo(), true)
.withOutput ("Output 2", AudioChannelSet::stereo(), false)
.withOutput ("Output 3", AudioChannelSet::stereo(), false)
.withOutput ("Output 4", AudioChannelSet::stereo(), false)
.withOutput ("Output 5", AudioChannelSet::stereo(), false)
.withOutput ("Output 6", AudioChannelSet::stereo(), false)
.withOutput ("Output 7", AudioChannelSet::stereo(), false)
.withOutput ("Output 8", AudioChannelSet::stereo(), false)
.withOutput ("Output 9", AudioChannelSet::stereo(), false)
.withOutput ("Output 10", AudioChannelSet::stereo(), false)
.withOutput ("Output 11", AudioChannelSet::stereo(), false)
.withOutput ("Output 12", AudioChannelSet::stereo(), false)
.withOutput ("Output 13", AudioChannelSet::stereo(), false)
.withOutput ("Output 14", AudioChannelSet::stereo(), false)
.withOutput ("Output 15", AudioChannelSet::stereo(), false)
.withOutput ("Output 16", AudioChannelSet::stereo(), false)
.withInput("Input", AudioChannelSet::stereo(), true)
.withInput ("Sidechain", AudioChannelSet::stereo()))
I found out that when i clear the output buffers like this i don’t get the feedback noise anymore:
auto busCount = getBusCount (false);
for (int i = 0; i < busCount; ++i)
{
getBusBuffer(buffer, false, i).clear();
}
But it looks like I delete also the side chain signal when doing this. I don’t get any input signal anymore.
How can I zero all outputs before processing and also make sure that the sidechain input still works?