| 110 | } |
| 111 | |
| 112 | bool 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 | |
| 130 | void PluginProcessor::processBlock(juce::AudioBuffer<float>& buffer, juce::MidiBuffer&) { |
| 131 | if (bypass_.load(std::memory_order::relaxed) > .5f) { |
nothing calls this directly
no outgoing calls
no test coverage detected