summaryrefslogtreecommitdiff
path: root/src/wx/audio_plot.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wx/audio_plot.h')
-rw-r--r--src/wx/audio_plot.h17
1 files changed, 17 insertions, 0 deletions
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<Point> PointList;
+
+ mutable std::map<int, PointList> _peak;
+ mutable std::map<int, PointList> _rms;
+
static const int _minimum;
};