MCPcopy Create free account
hub / github.com/ZL-Audio/ZLEqualizer / isBusesLayoutSupported

Method isBusesLayoutSupported

source/PluginProcessor.cpp:112–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112bool PluginProcessor::isBusesLayoutSupported(const BusesLayout& layouts) const {
113 if (layouts.getMainInputChannelSet() == juce::AudioChannelSet::stereo() &&
114 layouts.getMainOutputChannelSet() == juce::AudioChannelSet::stereo() &&
115 (layouts.getChannelSet(true, 1).isDisabled() ||
116 layouts.getChannelSet(true, 1) == juce::AudioChannelSet::mono() ||
117 layouts.getChannelSet(true, 1) == juce::AudioChannelSet::stereo())) {
118 return true;
119 }
120 if (layouts.getMainInputChannelSet() == juce::AudioChannelSet::mono() &&
121 layouts.getMainOutputChannelSet() == juce::AudioChannelSet::mono() &&
122 (layouts.getChannelSet(true, 1).isDisabled() ||
123 layouts.getChannelSet(true, 1) == juce::AudioChannelSet::mono() ||
124 layouts.getChannelSet(true, 1) == juce::AudioChannelSet::stereo())) {
125 return true;
126 }
127 return false;
128}
129
130void PluginProcessor::processBlock(juce::AudioBuffer<float>& buffer, juce::MidiBuffer&) {
131 if (bypass_.load(std::memory_order::relaxed) > .5f) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected