summaryrefslogtreecommitdiff
path: root/src/wx/audio_plot.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-02-27 00:25:37 +0000
committerCarl Hetherington <cth@carlh.net>2013-02-27 00:25:37 +0000
commitab0ef1016c94d583d00ccb734373d7d07faf0e24 (patch)
treed3010b7f52d6c70941b76c5cf715aaeed1904baf /src/wx/audio_plot.h
parent51b4acfbaf0e2cd8b87bb675e023d9e940febc89 (diff)
Improve smoothing behaviour.
Diffstat (limited to 'src/wx/audio_plot.h')
-rw-r--r--src/wx/audio_plot.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/wx/audio_plot.h b/src/wx/audio_plot.h
index fe8862d54..7b2955e27 100644
--- a/src/wx/audio_plot.h
+++ b/src/wx/audio_plot.h
@@ -34,6 +34,8 @@ public:
void set_gain (float);
void set_smoothing (int);
+ static const int max_smoothing;
+
private:
void paint (wxPaintEvent &);
@@ -43,8 +45,17 @@ private:
/** gain to apply in dB */
float _gain;
int _smoothing;
-
std::vector<wxColour> _colours;
+ void plot_peak (wxGraphicsPath &, int) const;
+ void plot_rms (wxGraphicsPath &, int) const;
+ float y_for_linear (float) const;
+
+ double _db_label_width;
+ int _height;
+ int _y_origin;
+ float _x_scale;
+ float _y_scale;
+
static const int _minimum;
};