summaryrefslogtreecommitdiff
path: root/src/wx/audio_plot.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-09-30 22:13:16 +0200
committerCarl Hetherington <cth@carlh.net>2025-10-10 21:15:37 +0200
commit15ebff851d348eea2a5ae91c6495a787b8d012b2 (patch)
tree6de54e8c693754e18d88c08b58d1611861b85437 /src/wx/audio_plot.cc
parent474388e8a89f1bb01df04d1e806f726e66e60cb2 (diff)
Cleanup: use signals for seeking on audio graph clicks.
Diffstat (limited to 'src/wx/audio_plot.cc')
-rw-r--r--src/wx/audio_plot.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/wx/audio_plot.cc b/src/wx/audio_plot.cc
index 3982f9705..37fb78145 100644
--- a/src/wx/audio_plot.cc
+++ b/src/wx/audio_plot.cc
@@ -20,7 +20,6 @@
#include "audio_plot.h"
-#include "film_viewer.h"
#include "wx_util.h"
#include "lib/audio_decoder.h"
#include "lib/audio_analysis.h"
@@ -54,9 +53,8 @@ int const AudioPlot::_cursor_size = 8;
int const AudioPlot::max_smoothing = 128;
-AudioPlot::AudioPlot(wxWindow* parent, FilmViewer& viewer)
+AudioPlot::AudioPlot(wxWindow* parent)
: wxPanel (parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxFULL_REPAINT_ON_RESIZE)
- , _viewer (viewer)
, _smoothing (max_smoothing / 2)
, _gain_correction (0)
{
@@ -449,7 +447,7 @@ void
AudioPlot::left_down ()
{
if (_cursor) {
- _viewer.seek(_cursor->time, true);
+ Click(_cursor->time);
}
}