From 0cdd46561e25b161f4c699fcdbfe60415930392d Mon Sep 17 00:00:00 2001 From: John Joseph Date: Tue, 15 Sep 2020 01:47:35 -0400 Subject: [PATCH] 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? --- .../juce_audio_processors/processors/juce_AudioProcessor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_audio_processors/processors/juce_AudioProcessor.cpp b/modules/juce_audio_processors/processors/juce_AudioProcessor.cpp index c805991315..2ecccda733 100644 --- a/modules/juce_audio_processors/processors/juce_AudioProcessor.cpp +++ b/modules/juce_audio_processors/processors/juce_AudioProcessor.cpp @@ -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;