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
4ddfcff3
Commit
4ddfcff3
authored
Feb 26, 2010
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Vorbis: support for 6.1 and 7.1
Close #3347
parent
86352fc8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
4 deletions
+22
-4
modules/codec/vorbis.c
modules/codec/vorbis.c
+22
-4
No files found.
modules/codec/vorbis.c
View file @
4ddfcff3
...
...
@@ -99,17 +99,29 @@ static const int pi_channels_maps[9] =
AOUT_CHAN_LEFT
|
AOUT_CHAN_RIGHT
|
AOUT_CHAN_CENTER
|
AOUT_CHAN_REARLEFT
|
AOUT_CHAN_REARRIGHT
|
AOUT_CHAN_LFE
,
AOUT_CHAN_LEFT
|
AOUT_CHAN_RIGHT
|
AOUT_CHAN_CENTER
|
AOUT_CHAN_REAR
LEFT
|
AOUT_CHAN_REARRIGHT
|
AOUT_CHAN_MIDDLELEFT
|
AOUT_CHAN_MIDDLERIGHT
,
|
AOUT_CHAN_REAR
CENTER
|
AOUT_CHAN_MIDDLELEFT
|
AOUT_CHAN_MIDDLERIGHT
|
AOUT_CHAN_LFE
,
AOUT_CHAN_LEFT
|
AOUT_CHAN_RIGHT
|
AOUT_CHAN_CENTER
|
AOUT_CHAN_REARLEFT
|
AOUT_CHAN_REARRIGHT
|
AOUT_CHAN_MIDDLELEFT
|
AOUT_CHAN_MIDDLERIGHT
|
AOUT_CHAN_LFE
|
AOUT_CHAN_LFE
,
};
/*
** channel order as defined in http://www.
ogghelp.com/ogg/glossary.cfm#Audio_Channels
** channel order as defined in http://www.
xiph.org/vorbis/doc/Vorbis_I_spec.html#x1-800004.3.9
*/
/* recommended vorbis channel order for 8 channels */
static
const
uint32_t
pi_8channels_in
[]
=
{
AOUT_CHAN_LEFT
,
AOUT_CHAN_CENTER
,
AOUT_CHAN_RIGHT
,
AOUT_CHAN_MIDDLELEFT
,
AOUT_CHAN_MIDDLERIGHT
,
AOUT_CHAN_REARLEFT
,
AOUT_CHAN_REARRIGHT
,
AOUT_CHAN_LFE
,
0
};
/* recommended vorbis channel order for 7 channels */
static
const
uint32_t
pi_7channels_in
[]
=
{
AOUT_CHAN_LEFT
,
AOUT_CHAN_CENTER
,
AOUT_CHAN_RIGHT
,
AOUT_CHAN_MIDDLELEFT
,
AOUT_CHAN_MIDDLERIGHT
,
AOUT_CHAN_REARCENTER
,
AOUT_CHAN_LFE
,
0
};
/* recommended vorbis channel order for 6 channels */
static
const
uint32_t
pi_6channels_in
[]
=
{
AOUT_CHAN_LEFT
,
AOUT_CHAN_CENTER
,
AOUT_CHAN_RIGHT
,
...
...
@@ -612,6 +624,12 @@ static void ConfigureChannelOrder(int *pi_chan_table, int i_channels, uint32_t i
const
uint32_t
*
pi_channels_in
;
switch
(
i_channels
)
{
case
8
:
pi_channels_in
=
pi_8channels_in
;
break
;
case
7
:
pi_channels_in
=
pi_7channels_in
;
break
;
case
6
:
case
5
:
pi_channels_in
=
pi_6channels_in
;
...
...
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