Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
f39ad0ef
Commit
f39ad0ef
authored
Mar 08, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unduplicate WG4 channels order
parent
2b2e2df7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
18 deletions
+3
-18
modules/audio_filter/channel_mixer/dolby.c
modules/audio_filter/channel_mixer/dolby.c
+3
-9
modules/audio_filter/channel_mixer/mono.c
modules/audio_filter/channel_mixer/mono.c
+0
-9
No files found.
modules/audio_filter/channel_mixer/dolby.c
View file @
f39ad0ef
...
...
@@ -67,12 +67,6 @@ struct filter_sys_t
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
*****************************************************************************/
...
...
@@ -115,11 +109,11 @@ static int Create( vlc_object_t *p_this )
p_sys
->
i_rear_center
=
-
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
:
p_sys
->
i_left
=
i_offset
;
...
...
modules/audio_filter/channel_mixer/mono.c
View file @
f39ad0ef
...
...
@@ -96,15 +96,6 @@ static const char *const ppsz_pos_descriptions[] =
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_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-"
/*****************************************************************************
* Module descriptor
...
...
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