1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-16 00:34:19 +00:00

VST3 Client: Ensure main buses are enabled by default when using PreferredChannelConfigurations

This commit is contained in:
reuk 2021-06-04 17:09:25 +01:00
parent 712b14a272
commit 75922cac38
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11

View file

@ -2669,7 +2669,12 @@ public:
info.busType = (index == 0 ? Vst::kMain : Vst::kAux);
#endif
#ifdef JucePlugin_PreferredChannelConfigurations
info.flags = Vst::BusInfo::kDefaultActive;
#else
info.flags = (bus->isEnabledByDefault()) ? Vst::BusInfo::kDefaultActive : 0;
#endif
return kResultTrue;
}
}