@fabian from the commits it looks like you’re the best person to know what’s wrong. hope you’ll be able to check it.
VST2 reports wrong input due to limitations of it and
Code to test it:
- Create a new Juce Plug-In (Projucer Wizard no need to change anything)
- Add to busesProperties a “side-chain”:
.withInput ("Sidechain", AudioChannelSet::stereo(), true)
- Modify the paint() call in the editor:
g.drawFittedText (String::formatted("Num of Ch#: %d",processor.getBus(true, 0)->getNumberOfChannels()), getLocalBounds(), Justification::centred, 1);
Now here’s the magic (with VST2).
In Cubase, create Mono track.
Insert the plug-in.
if you don’t report additional .withInput , the mono/stereo would be as expected.
adding another bus makes VST2 always use the stereo layout (even though it is mono!)
I’m now going thru
void findMaxTotalChannels (int& maxTotalIns, int& maxTotalOuts)
That I suspect might be the cause.