Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
a6274616
Commit
a6274616
authored
Apr 03, 2011
by
Rémi Denis-Courmont
Browse files
PulseAudio: fix channels map order (untested)
parent
8ead43aa
Changes
1
Show whitespace changes
Inline
Side-by-side
modules/audio_output/pulse.c
View file @
a6274616
...
...
@@ -295,34 +295,31 @@ static int Open(vlc_object_t *obj)
return
VLC_EGENERIC
;
}
/* Channel mapping */
/* Channel mapping
(order defined in vlc_aout.h)
*/
struct
pa_channel_map
map
;
map
.
channels
=
0
;
if
(
aout
->
output
.
output
.
i_physical_channels
&
AOUT_CHAN_CENTER
)
{
if
(
ss
.
channels
==
1
)
map
.
map
[
map
.
channels
++
]
=
PA_CHANNEL_POSITION_MONO
;
else
map
.
map
[
map
.
channels
++
]
=
PA_CHANNEL_POSITION_FRONT_CENTER
;
}
if
(
aout
->
output
.
output
.
i_physical_channels
&
AOUT_CHAN_LEFT
)
map
.
map
[
map
.
channels
++
]
=
PA_CHANNEL_POSITION_FRONT_LEFT
;
if
(
aout
->
output
.
output
.
i_physical_channels
&
AOUT_CHAN_RIGHT
)
map
.
map
[
map
.
channels
++
]
=
PA_CHANNEL_POSITION_FRONT_RIGHT
;
if
(
aout
->
output
.
output
.
i_physical_channels
&
AOUT_CHAN_REARCENTER
)
map
.
map
[
map
.
channels
++
]
=
PA_CHANNEL_POSITION_REAR_CENTER
;
if
(
aout
->
output
.
output
.
i_physical_channels
&
AOUT_CHAN_REARLEFT
)
map
.
map
[
map
.
channels
++
]
=
PA_CHANNEL_POSITION_REAR_LEFT
;
if
(
aout
->
output
.
output
.
i_physical_channels
&
AOUT_CHAN_REARRIGHT
)
map
.
map
[
map
.
channels
++
]
=
PA_CHANNEL_POSITION_REAR_RIGHT
;
if
(
aout
->
output
.
output
.
i_physical_channels
&
AOUT_CHAN_MIDDLELEFT
)
map
.
map
[
map
.
channels
++
]
=
PA_CHANNEL_POSITION_FRONT_LEFT_OF_CENTER
;
if
(
aout
->
output
.
output
.
i_physical_channels
&
AOUT_CHAN_MIDDLERIGHT
)
map
.
map
[
map
.
channels
++
]
=
PA_CHANNEL_POSITION_FRONT_RIGHT_OF_CENTER
;
if
(
aout
->
output
.
output
.
i_physical_channels
&
AOUT_CHAN_REARLEFT
)
map
.
map
[
map
.
channels
++
]
=
PA_CHANNEL_POSITION_REAR_LEFT
;
if
(
aout
->
output
.
output
.
i_physical_channels
&
AOUT_CHAN_REARRIGHT
)
map
.
map
[
map
.
channels
++
]
=
PA_CHANNEL_POSITION_REAR_RIGHT
;
if
(
aout
->
output
.
output
.
i_physical_channels
&
AOUT_CHAN_REARCENTER
)
map
.
map
[
map
.
channels
++
]
=
PA_CHANNEL_POSITION_REAR_CENTER
;
if
(
aout
->
output
.
output
.
i_physical_channels
&
AOUT_CHAN_CENTER
)
{
if
(
ss
.
channels
==
1
)
map
.
map
[
map
.
channels
++
]
=
PA_CHANNEL_POSITION_MONO
;
else
map
.
map
[
map
.
channels
++
]
=
PA_CHANNEL_POSITION_FRONT_CENTER
;
}
if
(
aout
->
output
.
output
.
i_physical_channels
&
AOUT_CHAN_LFE
)
map
.
map
[
map
.
channels
++
]
=
PA_CHANNEL_POSITION_LFE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment