mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-14 09:26:30 +01:00
[Summary] Bug fix #46662 "Values differ when scrolling and moving fader in numeric fader position indicator"
[Feature reviewed] AMishyn [Reviewed] GZharun
This commit is contained in:
parent
8e5991b32a
commit
cfb5b3ebea
1 changed files with 5 additions and 2 deletions
|
|
@ -487,11 +487,14 @@ GainMeter::show_gain ()
|
|||
{
|
||||
char buf[32];
|
||||
|
||||
float v = gain_adjustment.get_value();
|
||||
double v = gain_adjustment.get_value();
|
||||
|
||||
switch (_data_type) {
|
||||
case DataType::AUDIO:
|
||||
if (v == 0.0) {
|
||||
if (v < 0.0003199) {
|
||||
// is possible when moving fader only
|
||||
// adjustment value 0.0003199 ~ -120 Db gain
|
||||
// this is the lowest value after which we should display -inf
|
||||
strcpy (buf, _("-inf"));
|
||||
} else {
|
||||
snprintf (buf, sizeof (buf), "%.1f", accurate_coefficient_to_dB (slider_position_to_gain_with_max (v, Config->get_max_gain())));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue