| 98 | } |
| 99 | |
| 100 | bool 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 |
nothing calls this directly
no outgoing calls
no test coverage detected