bool IAAEffectProcessor::isBusesLayoutSupported (const BusesLayout& layouts) const { if (layouts.getMainInputChannelSet() != AudioChannelSet::stereo()) return false; if (layouts.getMainOutputChannelSet() != layouts.getMainInputChannelSet()) return false; return true; }
bool ATKJUCEAudioProcessor::isBusesLayoutSupported (const BusesLayout& layouts) const { #if JucePlugin_IsMidiEffect ignoreUnused (layouts); return true; #else // This is the place where you check if the layout is supported. if (layouts.getMainOutputChannelSet() != AudioChannelSet::stereo()) return false; // This checks if the input layout matches the output layout #if ! JucePlugin_IsSynth if (layouts.getMainOutputChannelSet() != layouts.getMainInputChannelSet()) return false; #endif return true; #endif }
//============================================================================== bool isBusesLayoutSupported (const BusesLayout& layouts) const override { // the sidechain can take any layout, the main bus needs to be the same on the input and output return (layouts.getMainInputChannelSet() == layouts.getMainOutputChannelSet() && (! layouts.getMainInputChannelSet().isDisabled())); }