]> git.sesse.net Git - vlc/commitdiff
Mono: fix channel order
authorJean-Baptiste Kempf <jb@videolan.org>
Sun, 4 Dec 2011 15:15:34 +0000 (16:15 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 4 Dec 2011 15:17:09 +0000 (16:17 +0100)
modules/audio_filter/channel_mixer/mono.c

index 109c239e6dd56748c7f13163f95155fe8a88758a..e776cae0b06742e547ac07f6b9f09fc61628999e 100644 (file)
@@ -89,15 +89,21 @@ struct filter_sys_t
 #define MONO_CHANNEL_LONGTEXT N_("This option silences all other channels " \
     "except the selected channel.")
 
-static const int pi_pos_values[] = { 0, 1, 2, 4, 8, 5 };
+static const int pi_pos_values[] = { 0, 1, 4, 5, 7, 8, 2, 3, 6 };
 static const char *const ppsz_pos_descriptions[] =
-{ N_("Left"), N_("Right"), N_("Left rear"), N_("Right rear"), N_("Center"),
-  N_("Left front") };
+{ N_("Left"), N_("Right"),
+  N_("Rear left"), N_("Rear right"),
+  N_("Center"), N_("Low-frequency effects"),
+  N_("Side left"), N_("Side right"), N_("Rear center") };
 
-/* our internal channel order (WG-4 order) */
-static const uint32_t pi_channels_out[] =
-{ AOUT_CHAN_LEFT, AOUT_CHAN_RIGHT, AOUT_CHAN_REARLEFT, AOUT_CHAN_REARRIGHT,
-  AOUT_CHAN_CENTER, AOUT_CHAN_LFE, 0 };
+/* our internal channel order (WG-4 order)
+static const uint32_t pi_vlc_chan_order_wg4[] =
+{
+    AOUT_CHAN_LEFT, AOUT_CHAN_RIGHT,
+    AOUT_CHAN_MIDDLELEFT, AOUT_CHAN_MIDDLERIGHT,
+    AOUT_CHAN_REARLEFT, AOUT_CHAN_REARRIGHT, AOUT_CHAN_REARCENTER,
+    AOUT_CHAN_CENTER, AOUT_CHAN_LFE, 0
+}; */
 
 #define MONO_CFG "sout-mono-"
 /*****************************************************************************