13
0

VST3: fix kMaxSendLevel, on Mixbus 15dB gain can be added

This commit is contained in:
Robin Gareus 2020-11-17 14:54:31 +01:00
parent 5a27cb9780
commit ff51e315e3
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -2632,8 +2632,13 @@ VST3PI::getContextInfoValue (double& value, FIDString id)
return kNotInitialized;
}
if (0 == strcmp (id, ContextInfo::kMaxVolume)) {
value = 2.0; // Config->get_max_gain();
value = s->gain_control ()->upper ();
} else if (0 == strcmp (id, ContextInfo::kMaxSendLevel)) {
#ifdef MIXBUS
if (s->send_level_controllable (0)) {
value = s->send_level_controllable (0)->upper (); // pow (10.0, .05 * 15.0);
}
#endif
value = 2.0; // Config->get_max_gain();
} else if (0 == strcmp (id, ContextInfo::kVolume)) {
boost::shared_ptr<AutomationControl> ac = s->gain_control ();