1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-26 02:14:22 +00:00

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

This commit is contained in:
hogliux 2016-10-01 10:56:18 +01:00
parent 225e8dafd9
commit 27be047e8e

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