Skip to content

Commit

Permalink
Remove dual mono setting in Logic
Browse files Browse the repository at this point in the history
  • Loading branch information
szkkng committed Jan 6, 2023
1 parent b670f48 commit 8062a20
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions Source/PluginProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8062a20

Please sign in to comment.