Commit f39ad0ef authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Unduplicate WG4 channels order

parent 2b2e2df7
...@@ -67,12 +67,6 @@ struct filter_sys_t ...@@ -67,12 +67,6 @@ struct filter_sys_t
int i_rear_right; int i_rear_right;
}; };
/* our internal channel order (WG-4 order) */
static const uint32_t pi_channels[] =
{ 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 };
/***************************************************************************** /*****************************************************************************
* Create: allocate headphone downmixer * Create: allocate headphone downmixer
*****************************************************************************/ *****************************************************************************/
...@@ -115,11 +109,11 @@ static int Create( vlc_object_t *p_this ) ...@@ -115,11 +109,11 @@ static int Create( vlc_object_t *p_this )
p_sys->i_rear_center = -1; p_sys->i_rear_center = -1;
p_sys->i_rear_right = -1; p_sys->i_rear_right = -1;
while ( pi_channels[i] ) while ( pi_vlc_chan_order_wg4[i] )
{ {
if ( p_filter->fmt_out.audio.i_physical_channels & pi_channels[i] ) if ( p_filter->fmt_out.audio.i_physical_channels & pi_vlc_chan_order_wg4[i] )
{ {
switch ( pi_channels[i] ) switch ( pi_vlc_chan_order_wg4[i] )
{ {
case AOUT_CHAN_LEFT: case AOUT_CHAN_LEFT:
p_sys->i_left = i_offset; p_sys->i_left = i_offset;
......
...@@ -96,15 +96,6 @@ static const char *const ppsz_pos_descriptions[] = ...@@ -96,15 +96,6 @@ static const char *const ppsz_pos_descriptions[] =
N_("Center"), N_("Low-frequency effects"), N_("Center"), N_("Low-frequency effects"),
N_("Side left"), N_("Side right"), N_("Rear center") }; N_("Side left"), N_("Side right"), N_("Rear center") };
/* 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-" #define MONO_CFG "sout-mono-"
/***************************************************************************** /*****************************************************************************
* Module descriptor * Module descriptor
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment