From f98caf4af896e9be943046b84586da5c2e103f18 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 3 Jun 2015 15:31:21 +0100 Subject: Make show audio work on the whole DCP, not individual content. --- src/wx/audio_plot.cc | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/wx/audio_plot.cc') diff --git a/src/wx/audio_plot.cc b/src/wx/audio_plot.cc index 16930ffd8..829290d4d 100644 --- a/src/wx/audio_plot.cc +++ b/src/wx/audio_plot.cc @@ -38,7 +38,6 @@ int const AudioPlot::max_smoothing = 128; AudioPlot::AudioPlot (wxWindow* parent) : wxPanel (parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxFULL_REPAINT_ON_RESIZE) - , _gain (0) , _smoothing (max_smoothing / 2) { #ifndef __WXOSX__ @@ -205,7 +204,7 @@ AudioPlot::y_for_linear (float p, Metrics const & metrics) const p = 1e-4; } - return metrics.height - (20 * log10(p) - _minimum + _gain) * metrics.y_scale - metrics.y_origin; + return metrics.height - (20 * log10(p) - _minimum) * metrics.y_scale - metrics.y_origin; } void @@ -288,13 +287,6 @@ AudioPlot::plot_rms (wxGraphicsPath& path, int channel, Metrics const & metrics) } } -void -AudioPlot::set_gain (float g) -{ - _gain = g; - Refresh (); -} - void AudioPlot::set_smoothing (int s) { -- cgit v1.2.3