1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

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

This commit is contained in:
ed 2018-03-23 10:56:11 +00:00
parent ea826db813
commit 8eacf2cd96
2 changed files with 2 additions and 2 deletions

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

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())