Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
a6274616
Commit
a6274616
authored
Apr 03, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PulseAudio: fix channels map order (untested)
parent
8ead43aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
17 deletions
+14
-17
modules/audio_output/pulse.c
modules/audio_output/pulse.c
+14
-17
No files found.
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