mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 20:55:48 +01:00
mackie: fix gain control display
This commit is contained in:
parent
eeff08aac4
commit
10a11492dd
1 changed files with 10 additions and 0 deletions
|
|
@ -912,6 +912,16 @@ Strip::do_parameter_display (AutomationType type, float val)
|
|||
|
||||
switch (type) {
|
||||
case GainAutomation:
|
||||
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 BusSendLevel:
|
||||
if (Profile->get_mixbus()) { //Mixbus sends are already stored in dB
|
||||
snprintf (buf, sizeof (buf), "%2.1f", val);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue