Bump maximum audio channels to 12 so that we can (crudely) use
authorCarl Hetherington <cth@carlh.net>
Wed, 5 Mar 2014 14:43:12 +0000 (14:43 +0000)
committerCarl Hetherington <cth@carlh.net>
Wed, 5 Mar 2014 14:43:12 +0000 (14:43 +0000)
BsL/BsR.

Requested-by: Markus Raab
ChangeLog
src/lib/util.cc
src/lib/util.h
src/wx/audio_mapping_view.cc
src/wx/audio_plot.cc

index 62d76fbf57f23fb74258dd434148b3265c5c1dd2..46230393fcbc652b3838ceddc975fdbb8c286b20 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-03-05  Carl Hetherington  <cth@carlh.net>
+
+       * Bump maximum audio channels to 12 so that we can
+       (crudely at least) get BsL/BsR.
+
 2014-03-04  Carl Hetherington  <cth@carlh.net>
 
        * Version 1.64.18 released.
index 48b418d37634fe6ecdd41bb507ae6d54830485d5..35385ab40be03ff67260993352629ec84ab1f1b3 100644 (file)
@@ -792,7 +792,7 @@ video_frames_to_audio_frames (VideoContent::Frame v, float audio_sample_rate, fl
 string
 audio_channel_name (int c)
 {
-       assert (MAX_AUDIO_CHANNELS == 8);
+       assert (MAX_AUDIO_CHANNELS == 12);
 
        /* TRANSLATORS: these are the names of audio channels; Lfe (sub) is the low-frequency
           enhancement channel (sub-woofer).  HI is the hearing-impaired audio track and
@@ -805,8 +805,12 @@ audio_channel_name (int c)
                _("Lfe (sub)"),
                _("Left surround"),
                _("Right surround"),
-               _("HI"),
-               _("VI")
+               _("Hearing impaired"),
+               _("Visually impaired"),
+               _("Left centre"),
+               _("Right centre"),
+               _("Left rear surround"),
+               _("Right rear surround"),
        };
 
        return channels[c];
index fc17dc9443c920b2dd084c30eba7ca41273e3f69..c056808596438567d708c8335889ad2fe521c927 100644 (file)
@@ -49,7 +49,7 @@ extern "C" {
 #undef check
 
 /** The maximum number of audio channels that we can cope with */
-#define MAX_AUDIO_CHANNELS 8
+#define MAX_AUDIO_CHANNELS 12
 
 #define DCPOMATIC_HELLO "Boys, you gotta learn not to talk to nuns that way"
 
index fe32192610afc0a6afb853526d4a8d863fbb7614..7fdecb8d52a8dc9d3cee8ff54e8781b68b3ca422 100644 (file)
@@ -34,7 +34,7 @@ using std::max;
 using boost::shared_ptr;
 using boost::lexical_cast;
 
-#define INDICATOR_SIZE 20
+#define INDICATOR_SIZE 16
 
 enum {
        ID_off = 1,
@@ -270,9 +270,9 @@ AudioMappingView::set_column_labels ()
 {
        int const c = _grid->GetNumberCols ();
        
-       _grid->SetColLabelValue (0, _("Content channel"));
+       _grid->SetColLabelValue (0, _("Content"));
 
-#if MAX_AUDIO_CHANNELS != 8
+#if MAX_AUDIO_CHANNELS != 12
 #warning AudioMappingView::set_column_labels() is expecting the wrong MAX_AUDIO_CHANNELS
 #endif 
        
@@ -307,7 +307,23 @@ AudioMappingView::set_column_labels ()
        if (c > 7) {
                _grid->SetColLabelValue (8, _("VI"));
        }
-       
+
+       if (c > 8) {
+               _grid->SetColLabelValue (9, _("Lc"));
+       }
+
+       if (c > 9) {
+               _grid->SetColLabelValue (10, _("Rc"));
+       }
+
+       if (c > 10) {
+               _grid->SetColLabelValue (11, _("BsL"));
+       }
+
+       if (c > 11) {
+               _grid->SetColLabelValue (12, _("BsR"));
+       }
+
        _grid->AutoSize ();
 }
 
index 2e8b24e367ebe15b70fc927489a4a3b0718ddfaa..124b927367da0a69773a3e2d05171e176fa186ee 100644 (file)
@@ -62,8 +62,12 @@ AudioPlot::AudioPlot (wxWindow* parent)
        _colours.push_back (wxColour (  0, 139,   0));
        _colours.push_back (wxColour (  0,   0, 139));
        _colours.push_back (wxColour (255, 255,   0));
+       _colours.push_back (wxColour (  0, 255, 255));
+       _colours.push_back (wxColour (255,   0, 255));
+       _colours.push_back (wxColour (255,   0, 139));
+       _colours.push_back (wxColour (139,   0, 255));
 
-#if MAX_AUDIO_CHANNELS != 8
+#if MAX_AUDIO_CHANNELS != 12
 #warning AudioPlot::AudioPlot is expecting the wrong MAX_AUDIO_CHANNELS
 #endif