MCPcopy Create free account
hub / github.com/jerryuhoo/Fire / isBusesLayoutSupported

Method isBusesLayoutSupported

Source/PluginProcessor.cpp:695–714  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

693
694#ifndef JucePlugin_PreferredChannelConfigurations
695bool FireAudioProcessor::isBusesLayoutSupported(const BusesLayout& layouts) const
696{
697#if JucePlugin_IsMidiEffect
698 ignoreUnused(layouts);
699 return true;
700#else
701 // This is the place where you check if the layout is supported.
702 // In this template code we only support mono or stereo.
703 if (layouts.getMainOutputChannelSet() != juce::AudioChannelSet::mono() && layouts.getMainOutputChannelSet() != juce::AudioChannelSet::stereo())
704 return false;
705
706 // This checks if the input layout matches the output layout
707#if ! JucePlugin_IsSynth
708 if (layouts.getMainOutputChannelSet() != layouts.getMainInputChannelSet())
709 return false;
710#endif
711
712 return true;
713#endif
714}
715#endif
716
717void FireAudioProcessor::processBlockBypassed(juce::AudioBuffer<float>& buffer,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected