Fix audio analysis crash introduced when increasing MAX_AUDIO_CHANNELS.
authorCarl Hetherington <cth@carlh.net>
Wed, 26 Feb 2014 11:55:01 +0000 (11:55 +0000)
committerCarl Hetherington <cth@carlh.net>
Wed, 26 Feb 2014 11:55:01 +0000 (11:55 +0000)
src/wx/audio_plot.cc

index fd261925518b3c058605bf4f04951895e073ec2f..9415664918f6513d5af8e808354714561be37b56 100644 (file)
@@ -59,7 +59,13 @@ AudioPlot::AudioPlot (wxWindow* parent)
        _colours.push_back (wxColour (  0, 255,   0));
        _colours.push_back (wxColour (139,   0, 204));
        _colours.push_back (wxColour (  0,   0, 255));
-       _colours.push_back (wxColour (100, 100, 100));
+       _colours.push_back (wxColour (  0, 139,   0));
+       _colours.push_back (wxColour (  0,   0, 139));
+       _colours.push_back (wxColour (255, 255,   0));
+
+#if MAX_AUDIO_CHANNELS != 8
+#warning AudioPlot::AudioPlot is expecting the wrong MAX_AUDIO_CHANNELS
+#endif 
        
        Bind (wxEVT_PAINT, boost::bind (&AudioPlot::paint, this));