From 37c28f4c76df89bc84d773beda1bb90be1cedd1a Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 26 Mar 2018 22:58:01 +0100 Subject: Bump audio analysis file version and cache drawn points in the audio plot. --- src/wx/audio_plot.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/wx/audio_plot.h') diff --git a/src/wx/audio_plot.h b/src/wx/audio_plot.h index 49f7e4ab3..203d7af8b 100644 --- a/src/wx/audio_plot.h +++ b/src/wx/audio_plot.h @@ -57,5 +57,22 @@ private: wxString _message; float _gain_correction; + struct Point { + Point (wxPoint draw_, DCPTime time_, float db_) + : draw(draw_) + , time(time_) + , db(db_) + {} + + wxPoint draw; + DCPTime time; + float db; + }; + + typedef std::vector PointList; + + mutable std::map _peak; + mutable std::map _rms; + static const int _minimum; }; -- cgit v1.2.3