예제 #1
0
bool IAAEffectProcessor::isBusesLayoutSupported (const BusesLayout& layouts) const
{
    if (layouts.getMainInputChannelSet() != AudioChannelSet::stereo())
        return false;

    if (layouts.getMainOutputChannelSet() != layouts.getMainInputChannelSet())
        return false;

    return true;
}
예제 #2
0
bool ATKJUCEAudioProcessor::isBusesLayoutSupported (const BusesLayout& layouts) const
{
  #if JucePlugin_IsMidiEffect
    ignoreUnused (layouts);
    return true;
  #else
    // This is the place where you check if the layout is supported.
    if (layouts.getMainOutputChannelSet() != AudioChannelSet::stereo())
        return false;

    // This checks if the input layout matches the output layout
   #if ! JucePlugin_IsSynth
    if (layouts.getMainOutputChannelSet() != layouts.getMainInputChannelSet())
        return false;
   #endif

    return true;
  #endif
}
예제 #3
0
파일: NoiseGate.cpp 프로젝트: Neknail/JUCE
 //==============================================================================
 bool isBusesLayoutSupported (const BusesLayout& layouts) const override
 {
     // the sidechain can take any layout, the main bus needs to be the same on the input and output
     return (layouts.getMainInputChannelSet() == layouts.getMainOutputChannelSet() &&
             (! layouts.getMainInputChannelSet().isDisabled()));
 }