diff options
author | Robin Gareus <robin@gareus.org> | 2019-12-14 15:04:08 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-12-14 15:06:23 +0100 |
commit | d4e023e1cbd783c2a46f8b4b231798c05f6b6708 (patch) | |
tree | 94c28a4bd8e44f2de803fefdd3f569c583961f7e /libs/surfaces | |
parent | d2facbf9c1116c192335ade77a4c07962e5473b9 (diff) |
Make BusSendLevel 1st class citizen (1/2)
Equivalent to Gain and Trim (gain-coefficient, not dB) and use
it for Sends.
Diffstat (limited to 'libs/surfaces')
-rw-r--r-- | libs/surfaces/mackie/strip.cc | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/libs/surfaces/mackie/strip.cc b/libs/surfaces/mackie/strip.cc index 2aadfe5472..84ab1bb3fc 100644 --- a/libs/surfaces/mackie/strip.cc +++ b/libs/surfaces/mackie/strip.cc @@ -885,6 +885,7 @@ Strip::do_parameter_display (ARDOUR::ParameterDescriptor const& desc, float val, switch (desc.type) { case GainAutomation: + case BusSendLevel: case TrimAutomation: // we can't use value_as_string() that'll suffix "dB" and also use "-inf" w/o space :( if (val == 0.0) { @@ -897,24 +898,6 @@ Strip::do_parameter_display (ARDOUR::ParameterDescriptor const& desc, float val, } break; - case BusSendLevel: - if (Profile->get_mixbus()) { //Mixbus sends are already stored in dB - // TODO remove after merge - PluginAutomation w/print_fmt - 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; - case PanAzimuthAutomation: if (Profile->get_mixbus()) { // XXX no _stripable check? |