From ddc48862d1008fa18f5dffd14ba2218a1b6803e3 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 20 Jul 2022 18:04:17 +0200 Subject: [PATCH] Fix failure to update peak on changing gain (#2286). --- src/wx/audio_panel.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wx/audio_panel.cc b/src/wx/audio_panel.cc index 7efdeb8ac..5e8370d46 100644 --- a/src/wx/audio_panel.cc +++ b/src/wx/audio_panel.cc @@ -261,6 +261,8 @@ AudioPanel::film_content_changed (int property) setup_peak (); layout (); } else if (property == AudioContentProperty::GAIN) { + /* This is a bit aggressive but probably not so bad */ + _peak_cache.clear(); setup_peak (); } else if (property == DCPContentProperty::REFERENCE_AUDIO) { if (ac.size() == 1) { -- 2.30.2