I’m in the process of porting an audio app that supports up to 4 inputs and outputs to a VST plugin.
Setting JucePlugin_PreferredChannelConfigurations
to {4,4} works in the Plugin Host, but not Ableton. So I think I need to set the extra inputs/outputs as sidechain/aux channels.
I’m currently dealing with a crash when loading the plugin in Ableton but would like to know if the following set up is a good workaround to allow a user to route multiple audio channels into the plugin:
static BusesProperties getBusesProperties()
{
BusesProperties buses;
buses.addBus (false, "Stereo Output", AudioChannelSet::stereo());
buses.addBus (false, "Mono Output", AudioChannelSet::mono());
buses.addBus (false, "Output 1", AudioChannelSet::mono(), false);
buses.addBus (false, "Output 2", AudioChannelSet::mono(), false);
buses.addBus (false, "Output 3", AudioChannelSet::mono(), false);
buses.addBus (false, "Output 4", AudioChannelSet::mono(), false);
buses.addBus (true, "Stereo Input", AudioChannelSet::stereo());
buses.addBus (true, "Mono Input", AudioChannelSet::mono());
buses.addBus (true, "Input 1", AudioChannelSet::mono(), false);
buses.addBus (true, "Input 2", AudioChannelSet::mono(), false);
buses.addBus (true, "Input 3", AudioChannelSet::mono(), false);
buses.addBus (true, "Input 4", AudioChannelSet::mono(), false);
return buses;
}
Any recommendations for how to set this up? The most important host to support is Ableton Live at the moment.