Mackie Protocol: Show dB values for Mixbus "Send" levels.

No sense rewriting it now, but the correct way to approach
   this stuff is to pass in the control, and use
   the appropriate one of: interface, internal, or user values.
   in this case, get_user would have returned dB for both Ardour and Mixbus sends.
This commit is contained in:
Ben Loftis 2016-02-03 13:48:56 -06:00
parent 7d5671a411
commit dc4daa892d

View file

@ -919,13 +919,19 @@ Strip::do_parameter_display (AutomationType type, float val)
switch (type) {
case GainAutomation:
case BusSendLevel:
if (val == 0.0) {
pending_display[1] = " -inf ";
} else {
float dB = accurate_coefficient_to_dB (val);
snprintf (buf, sizeof (buf), "%6.1f", dB);
if (Profile->get_mixbus()) { //Mixbus sends are already stored in dB
snprintf (buf, sizeof (buf), "%2.1f", val);
pending_display[1] = buf;
screen_hold = true;
} else {
if (val == 0.0) {
pending_display[1] = " -inf ";
} else {
float dB = accurate_coefficient_to_dB (val);
snprintf (buf, sizeof (buf), "%6.1f", dB);
pending_display[1] = buf;
screen_hold = true;
}
}
break;