From d073a7e8caa2adcc5fbc32f580538078fa8e5e42 Mon Sep 17 00:00:00 2001 From: reuk Date: Thu, 23 Feb 2023 19:39:52 +0000 Subject: [PATCH] VST3 Host: Avoid reading from non-existent buses --- .../format_types/juce_VST3PluginFormat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp b/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp index 754aea5369..81ec00d690 100644 --- a/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp +++ b/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp @@ -2743,7 +2743,7 @@ public: { const auto& requested = layouts.getChannelSet (isInput, i); - if (const auto arr = getVst3SpeakerArrangement (requested.isDisabled() ? getBus (true, i)->getLastEnabledLayout() : requested)) + if (const auto arr = getVst3SpeakerArrangement (requested.isDisabled() ? getBus (isInput, i)->getLastEnabledLayout() : requested)) result.push_back (*arr); else return {};