BsL/BsR.
Requested-by: Markus Raab
+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.
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
_("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];
#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"
using boost::shared_ptr;
using boost::lexical_cast;
-#define INDICATOR_SIZE 20
+#define INDICATOR_SIZE 16
enum {
ID_off = 1,
{
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
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 ();
}
_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