Browse Source

Fixed some AudioProcessor layouts mis-matches in the JUCE plugin examples

tags/2021-05-28
ed 7 years ago
parent
commit
8eacf2cd96
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      examples/Plugins/AUv3SynthPluginDemo.h
  2. +1
    -1
      examples/Plugins/InterAppAudioEffectPluginDemo.h

+ 1
- 1
examples/Plugins/AUv3SynthPluginDemo.h View File

@@ -323,7 +323,7 @@ public:
//==============================================================================
bool isBusesLayoutSupported (const BusesLayout& layouts) const override
{
return (layouts.getMainOutputChannels() == 2);
return (layouts.getMainOutputChannels() <= 2);
}
void prepareToPlay (double sampleRate, int estimatedMaxSizeOfBuffer) override


+ 1
- 1
examples/Plugins/InterAppAudioEffectPluginDemo.h View File

@@ -175,7 +175,7 @@ public:
bool isBusesLayoutSupported (const BusesLayout& layouts) const override
{
if (layouts.getMainInputChannelSet() != AudioChannelSet::stereo())
if (layouts.getMainInputChannels() > 2)
return false;
if (layouts.getMainOutputChannelSet() != layouts.getMainInputChannelSet())


Loading…
Cancel
Save