I have a standalone host app wrapping a plugin, where the plugin has a mono main input + mono sidechain input. (it also has outputs, irrelevant for now).
In the preference window I’m letting the user select which of the device input channels is to be routed to the main input, and which is routed to the sidechain (including a “None” option).
I need processBlock() to deliver the input channels according to the preference, i.e. first the main input, then the sidechain input (Where the “None” option would deliver zeros). I couldn’t find how to do it.
By the way, using JUCE 4.2. The given NoiseGate example connects sidechain channels hardcodedly, so it didn’t help me get to the answer.
Any help would be great. Thanks!