summaryrefslogtreecommitdiff
path: root/src/wx/audio_plot.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-04-16 01:10:36 +0200
committerCarl Hetherington <cth@carlh.net>2021-04-21 00:52:07 +0200
commit425f936336e669555a0806b321cb90ea569e18c3 (patch)
tree3f5a3d94ac5fde9805b0f5a815d36d9e83823d99 /src/wx/audio_plot.h
parent191adfe030803a49588afc4b9087da27654d946b (diff)
Only snap the crosshair to visible plots.
Diffstat (limited to 'src/wx/audio_plot.h')
-rw-r--r--src/wx/audio_plot.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wx/audio_plot.h b/src/wx/audio_plot.h
index 27d76b6db..9edabf8ec 100644
--- a/src/wx/audio_plot.h
+++ b/src/wx/audio_plot.h
@@ -76,7 +76,6 @@ private:
void left_down ();
void mouse_moved (wxMouseEvent& ev);
void mouse_leave (wxMouseEvent& ev);
- void search (std::map<int, PointList> const & search, wxMouseEvent const & ev, double& min_dist, Point& min_point) const;
std::weak_ptr<FilmViewer> _viewer;
std::shared_ptr<AudioAnalysis> _analysis;
@@ -87,7 +86,9 @@ private:
wxString _message;
float _gain_correction;
+ /** peak values keyed by channel */
mutable std::map<int, PointList> _peak;
+ /** RMS values keyed by channel */
mutable std::map<int, PointList> _rms;
boost::optional<Point> _cursor;