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 d066c11e25dd55aa7eae73d24f4e8b9f121b0bb0..5523d25393088196d88655581121b43f740c6522 100644 (file)
@@ -258,7 +258,7 @@ AudioPanel::gain_calculate_button_clicked ()
                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.