From 27be047e8e54a2a032824b98acfe77125e40d577 Mon Sep 17 00:00:00 2001 From: hogliux Date: Sat, 1 Oct 2016 10:56:18 +0100 Subject: [PATCH] Allow disabling the main bus in VST3 plug-ins with the revised multibus API --- modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp b/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp index 993a52e0f8..a842e1c5ac 100644 --- a/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp +++ b/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp @@ -1628,14 +1628,8 @@ public: } if (type == Vst::kAudio) - { - // don't allow disabling the main bus - if (state == 0 && index == 0) - return kResultFalse; - if (AudioProcessor::Bus* bus = pluginInstance->getBus (dir == Vst::kInput, index)) return (bus->enable (state != 0) ? kResultTrue : kResultFalse); - } return kResultFalse; }