mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-01 03:10:06 +00:00
VST3: checkBusFormatsAreNotDiscrete should return true when buses are disabled
This commit is contained in:
parent
2f329cec87
commit
a426feb6c2
1 changed files with 10 additions and 2 deletions
|
|
@ -1851,12 +1851,20 @@ public:
|
|||
auto numOutputBuses = pluginInstance->getBusCount (false);
|
||||
|
||||
for (int i = 0; i < numInputBuses; ++i)
|
||||
if (pluginInstance->getChannelLayoutOfBus (true, i).isDiscreteLayout())
|
||||
{
|
||||
auto& layout = pluginInstance->getChannelLayoutOfBus (true, i);
|
||||
|
||||
if (layout.isDiscreteLayout() && ! layout.isDisabled())
|
||||
return false;
|
||||
}
|
||||
|
||||
for (int i = 0; i < numOutputBuses; ++i)
|
||||
if (pluginInstance->getChannelLayoutOfBus (false, i).isDiscreteLayout())
|
||||
{
|
||||
auto& layout = pluginInstance->getChannelLayoutOfBus (false, i);
|
||||
|
||||
if (layout.isDiscreteLayout() && ! layout.isDisabled())
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue