From: Carl Hetherington Date: Sat, 25 Jan 2020 22:26:31 +0000 (+0100) Subject: Apply fader-based gain calculations to the current gain, not 0dB. X-Git-Tag: v2.15.42~3 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=5d7ba3c7717288b13cb8b286474382580f3bdba9 Apply fader-based gain calculations to the current gain, not 0dB. --- diff --git a/src/wx/audio_panel.cc b/src/wx/audio_panel.cc index d066c11e2..5523d2539 100644 --- a/src/wx/audio_panel.cc +++ b/src/wx/audio_panel.cc @@ -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.