1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-02 03:20:06 +00:00

Fixing bug; setChannelLayoutOfBus always returns false when disabling.

What's odd is that applyBusLayouts always returns true when disabling. This seems inconsistent; maybe the fix is instead to return true on line 197?
This commit is contained in:
John Joseph 2020-09-15 01:47:35 -04:00
parent 54164fac3f
commit 0cdd46561e

View file

@ -191,7 +191,7 @@ bool AudioProcessor::setChannelLayoutOfBus (bool isInputBus, int busIndex, const
{
auto layouts = bus->getBusesLayoutForLayoutChangeOfBus (layout);
if (layouts.getChannelSet (isInputBus, busIndex) == layout)
if (layouts.getChannelSet (isInputBus, busIndex) == layout || layout.isDisabled())
return applyBusLayouts (layouts);
return false;