Apply fader-based gain calculations to the current gain, not 0dB.
authorCarl Hetherington <cth@carlh.net>
Sat, 25 Jan 2020 22:26:31 +0000 (23:26 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 25 Jan 2020 22:26:31 +0000 (23:26 +0100)
src/wx/audio_panel.cc

index d066c11..5523d25 100644 (file)
@@ -258,7 +258,7 @@ AudioPanel::gain_calculate_button_clicked ()
                return;
        }
 
                return;
        }
 
-       _gain->wrapped()->SetValue (*c);
+       _gain->wrapped()->SetValue(_gain->wrapped()->GetValue() + *c);
 
        /* This appears to be necessary, as the change is not signalled,
           I think.
 
        /* This appears to be necessary, as the change is not signalled,
           I think.