summaryrefslogtreecommitdiff
path: root/src/wx/audio_plot.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-07-01 23:37:55 +0100
committerCarl Hetherington <cth@carlh.net>2015-07-01 23:37:55 +0100
commit4bf5a8794cf1ed6411e085b35c11777c3508f82e (patch)
tree2e0390a371a9fe828307b6d11313726299f232e3 /src/wx/audio_plot.h
parent92b6430402753a572c33d594ba0745a4e461edf4 (diff)
Restore short-cutting of analysis gain updates.
If we have an analysis of one piece of content and the gain changes we don't re-run the analysis, instead applying a suitable `correction' in the UI.
Diffstat (limited to 'src/wx/audio_plot.h')
-rw-r--r--src/wx/audio_plot.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/wx/audio_plot.h b/src/wx/audio_plot.h
index 846ac22dc..2027b6528 100644
--- a/src/wx/audio_plot.h
+++ b/src/wx/audio_plot.h
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2012 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2012-2015 Carl Hetherington <cth@carlh.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -35,6 +35,7 @@ public:
void set_type_visible (int t, bool v);
void set_smoothing (int);
void set_message (wxString);
+ void set_gain_correction (double gain);
static const int max_smoothing;
@@ -43,14 +44,15 @@ private:
void plot_peak (wxGraphicsPath &, int, Metrics const &) const;
void plot_rms (wxGraphicsPath &, int, Metrics const &) const;
float y_for_linear (float, Metrics const &) const;
+ AudioPoint get_point (int channel, int point) const;
boost::shared_ptr<AudioAnalysis> _analysis;
bool _channel_visible[MAX_DCP_AUDIO_CHANNELS];
bool _type_visible[AudioPoint::COUNT];
int _smoothing;
std::vector<wxColour> _colours;
-
wxString _message;
+ float _gain_correction;
static const int _minimum;
};