MCPcopy Create free account
hub / github.com/DamRsn/NeuralNote / isBusesLayoutSupported

Method isBusesLayoutSupported

NeuralNote/PluginSources/ProcessorBase.cpp:100–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100bool ProcessorBase::isBusesLayoutSupported(const juce::AudioProcessor::BusesLayout& layouts) const
101{
102 if (isMidiEffect())
103 return true;
104 else {
105 if (layouts.getMainOutputChannelSet() != juce::AudioChannelSet::mono()
106 && layouts.getMainOutputChannelSet() != juce::AudioChannelSet::stereo())
107 return false;
108 }
109
110 // This checks if the input layout matches the output layout
111#if !JucePlugin_IsSynth
112 if (layouts.getMainOutputChannelSet() != layouts.getMainInputChannelSet())
113 return false;
114#endif
115
116 return true;
117}
118
119} // namespace PluginHelpers

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected