1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00
This commit is contained in:
mynameisjohn 2025-08-19 19:07:41 +08:00 committed by GitHub
commit ea671258a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -199,7 +199,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;