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:
parent
225e8dafd9
commit
27be047e8e
1 changed files with 0 additions and 6 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue