diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-03-26 22:58:01 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-03-26 22:58:01 +0100 |
| commit | 37c28f4c76df89bc84d773beda1bb90be1cedd1a (patch) | |
| tree | 6346c20f1b47bcac9f8c383f8bee41ca56a26de1 /src/wx/audio_plot.h | |
| parent | f0192490565c72aa9838f40cbab56c4c0c60e522 (diff) | |
Bump audio analysis file version and cache drawn points in the audio plot.
Diffstat (limited to 'src/wx/audio_plot.h')
| -rw-r--r-- | src/wx/audio_plot.h | 17 |
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; }; |
