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:
parent
54164fac3f
commit
0cdd46561e
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue