13
0

Revert "Fix typo in OSC gain feedback message"

This was not a typo after all, but a way to show the gain in the
name-display, as per manual:
> In the case where Gainmode is set to position, the track name
> will show the dB value while values are changing.

This reverts commit 3290d66a43.
This commit is contained in:
Robin Gareus 2020-12-17 17:30:24 +01:00
parent 241105b477
commit 1737dc1869
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -609,7 +609,7 @@ OSCRouteObserver::send_gain_message ()
if (gainmode) {
_osc.float_message_with_id (X_("/strip/fader"), ssid, _gain_control->internal_to_interface (_last_gain), in_line, addr);
if (gainmode == 1) {
_osc.text_message_with_id (X_("/strip/gain"), ssid, string_compose ("%1%2%3", std::fixed, std::setprecision(2), accurate_coefficient_to_dB (_last_gain)), in_line, addr);
_osc.text_message_with_id (X_("/strip/name"), ssid, string_compose ("%1%2%3", std::fixed, std::setprecision(2), accurate_coefficient_to_dB (_last_gain)), in_line, addr);
gain_timeout = 8;
}
}