From 8062a201cf59fcd9e06cde9239320cfdd32df12a Mon Sep 17 00:00:00 2001 From: szkkng Date: Fri, 6 Jan 2023 14:40:40 +0900 Subject: [PATCH] Remove dual mono setting in Logic --- Source/PluginProcessor.cpp | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) 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