Browse Source

Allow disabling the main bus in VST3 plug-ins with the revised multibus API

tags/2021-05-28
hogliux 9 years ago
parent
commit
27be047e8e
1 changed files with 0 additions and 6 deletions
  1. +0
    -6
      modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp

+ 0
- 6
modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp View File

@@ -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;
}


Loading…
Cancel
Save