From 9579bfdec2fab28fc221e397cf848a08e48f6840 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 9 May 2014 22:51:30 +0100 Subject: MAX_AUDIO_CHANNELS -> MAX_DCP_AUDIO_CHANNELS. --- src/wx/audio_plot.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/wx/audio_plot.cc') diff --git a/src/wx/audio_plot.cc b/src/wx/audio_plot.cc index 124b92736..69faf127e 100644 --- a/src/wx/audio_plot.cc +++ b/src/wx/audio_plot.cc @@ -46,7 +46,7 @@ AudioPlot::AudioPlot (wxWindow* parent) SetDoubleBuffered (true); #endif - for (int i = 0; i < MAX_AUDIO_CHANNELS; ++i) { + for (int i = 0; i < MAX_DCP_AUDIO_CHANNELS; ++i) { _channel_visible[i] = false; } @@ -67,8 +67,8 @@ AudioPlot::AudioPlot (wxWindow* parent) _colours.push_back (wxColour (255, 0, 139)); _colours.push_back (wxColour (139, 0, 255)); -#if MAX_AUDIO_CHANNELS != 12 -#warning AudioPlot::AudioPlot is expecting the wrong MAX_AUDIO_CHANNELS +#if MAX_DCP_AUDIO_CHANNELS != 12 +#warning AudioPlot::AudioPlot is expecting the wrong MAX_DCP_AUDIO_CHANNELS #endif Bind (wxEVT_PAINT, boost::bind (&AudioPlot::paint, this)); @@ -81,7 +81,7 @@ AudioPlot::set_analysis (shared_ptr a) { _analysis = a; - for (int i = 0; i < MAX_AUDIO_CHANNELS; ++i) { + for (int i = 0; i < MAX_DCP_AUDIO_CHANNELS; ++i) { _channel_visible[i] = false; } @@ -168,7 +168,7 @@ AudioPlot::paint () gc->DrawText (_("Time"), data_width, metrics.height - metrics.y_origin + db_label_height / 2); if (_type_visible[AudioPoint::PEAK]) { - for (int c = 0; c < MAX_AUDIO_CHANNELS; ++c) { + for (int c = 0; c < MAX_DCP_AUDIO_CHANNELS; ++c) { wxGraphicsPath p = gc->CreatePath (); if (_channel_visible[c] && c < _analysis->channels()) { plot_peak (p, c, metrics); @@ -180,7 +180,7 @@ AudioPlot::paint () } if (_type_visible[AudioPoint::RMS]) { - for (int c = 0; c < MAX_AUDIO_CHANNELS; ++c) { + for (int c = 0; c < MAX_DCP_AUDIO_CHANNELS; ++c) { wxGraphicsPath p = gc->CreatePath (); if (_channel_visible[c] && c < _analysis->channels()) { plot_rms (p, c, metrics); -- cgit v1.2.3