diff --git a/Source/PluginProcessor.cpp b/Source/PluginProcessor.cpp index bf95ba0..51450e6 100644 --- a/Source/PluginProcessor.cpp +++ b/Source/PluginProcessor.cpp @@ -240,26 +240,14 @@ void JRGranularAudioProcessor::releaseResources() #ifndef JucePlugin_PreferredChannelConfigurations bool JRGranularAudioProcessor::isBusesLayoutSupported (const BusesLayout& layouts) const { - #if JucePlugin_IsMidiEffect - juce::ignoreUnused (layouts); - return true; - #else - // This is the place where you check if the layout is supported. - // In this template code we only support mono or stereo. - // Some plugin hosts, such as certain GarageBand versions, will only - // load plugins that support stereo bus layouts. - if (layouts.getMainOutputChannelSet() != juce::AudioChannelSet::mono() - && layouts.getMainOutputChannelSet() != juce::AudioChannelSet::stereo()) + if (layouts.getMainInputChannelSet() == juce::AudioChannelSet::disabled() + || layouts.getMainOutputChannelSet() == juce::AudioChannelSet::disabled()) return false; - // This checks if the input layout matches the output layout - #if ! JucePlugin_IsSynth - if (layouts.getMainOutputChannelSet() != layouts.getMainInputChannelSet()) + if (layouts.getMainOutputChannelSet() != juce::AudioChannelSet::stereo()) return false; - #endif - return true; - #endif + return layouts.getMainInputChannelSet() == layouts.getMainOutputChannelSet(); } #endif