MCPcopy Create free account
hub / github.com/GuitarML/NeuralPi / isBusesLayoutSupported

Method isBusesLayoutSupported

Source/PluginProcessor.cpp:152–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150
151#ifndef JucePlugin_PreferredChannelConfigurations
152bool NeuralPiAudioProcessor::isBusesLayoutSupported (const BusesLayout& layouts) const
153{
154 #if JucePlugin_IsMidiEffect
155 ignoreUnused (layouts);
156 return true;
157 #else
158 // This is the place where you check if the layout is supported.
159 // In this template code we only support mono or stereo.
160 if (layouts.getMainOutputChannelSet() != AudioChannelSet::mono()
161 && layouts.getMainOutputChannelSet() != AudioChannelSet::stereo())
162 return false;
163
164 // This checks if the input layout matches the output layout
165 #if ! JucePlugin_IsSynth
166 if (layouts.getMainOutputChannelSet() != layouts.getMainInputChannelSet())
167 return false;
168 #endif
169
170 return true;
171 #endif
172}
173#endif
174
175

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected