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
68162aca
Commit
68162aca
authored
Jun 18, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetic (no functionnal change).
parent
d867bbd1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
26 deletions
+27
-26
modules/audio_filter/channel_mixer/dolby.c
modules/audio_filter/channel_mixer/dolby.c
+27
-26
No files found.
modules/audio_filter/channel_mixer/dolby.c
View file @
68162aca
/*****************************************************************************
* dolby.c : simple decoder for dolby surround encoded streams
*****************************************************************************
* Copyright (C) 2005
, 2006
the VideoLAN team
* Copyright (C) 2005
-2009
the VideoLAN team
* $Id$
*
* Authors: Boris Dorès <babal@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
*
it under the terms of the GNU General Public License as published by
*
the Free Software Foundation; either version 2 of the License, or
*
(at your option)
any later version.
* This program is free software; you can redistribute it and/or modify
it
*
under the terms of the GNU General Public License as published by the Free
*
Software Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
*
but WITHOUT ANY WARRANTY; without even the implied warranty of
*
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
*
GNU General Public License for
more details.
* This program is distributed in the hope that it will be useful,
but WITHOUT
*
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
*
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License
*
along with this program; if not, write to the Free Software
* F
oundation, Inc., 51 F
ranklin Street, Fifth Floor, Boston MA 02110-1301, USA.
* You should have received a copy of the GNU General Public License
along with
*
this program; if not, write to the Free Software Foundation, Inc., 51
* Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
/*****************************************************************************
...
...
@@ -81,6 +81,7 @@ static int Create( vlc_object_t *p_this )
int
i
=
0
;
int
i_offset
=
0
;
aout_filter_t
*
p_filter
=
(
aout_filter_t
*
)
p_this
;
aout_filter_sys_t
*
p_sys
;
/* Validate audio filter format */
if
(
p_filter
->
input
.
i_physical_channels
!=
(
AOUT_CHAN_LEFT
|
AOUT_CHAN_RIGHT
)
...
...
@@ -104,15 +105,15 @@ static int Create( vlc_object_t *p_this )
}
/* Allocate the memory needed to store the module's structure */
p_filter
->
p_sys
=
malloc
(
sizeof
(
struct
aout_filter_sys_t
)
);
if
(
p_filter
->
p_sys
==
NULL
)
p_
sys
=
p_
filter
->
p_sys
=
malloc
(
sizeof
(
struct
aout_filter_sys_t
)
);
if
(
p_sys
==
NULL
)
return
VLC_ENOMEM
;
p_
filter
->
p_
sys
->
i_left
=
-
1
;
p_
filter
->
p_
sys
->
i_center
=
-
1
;
p_
filter
->
p_
sys
->
i_right
=
-
1
;
p_
filter
->
p_
sys
->
i_rear_left
=
-
1
;
p_
filter
->
p_
sys
->
i_rear_center
=
-
1
;
p_
filter
->
p_
sys
->
i_rear_right
=
-
1
;
p_sys
->
i_left
=
-
1
;
p_sys
->
i_center
=
-
1
;
p_sys
->
i_right
=
-
1
;
p_sys
->
i_rear_left
=
-
1
;
p_sys
->
i_rear_center
=
-
1
;
p_sys
->
i_rear_right
=
-
1
;
while
(
pi_channels
[
i
]
)
{
...
...
@@ -121,22 +122,22 @@ static int Create( vlc_object_t *p_this )
switch
(
pi_channels
[
i
]
)
{
case
AOUT_CHAN_LEFT
:
p_
filter
->
p_
sys
->
i_left
=
i_offset
;
p_sys
->
i_left
=
i_offset
;
break
;
case
AOUT_CHAN_CENTER
:
p_
filter
->
p_
sys
->
i_center
=
i_offset
;
p_sys
->
i_center
=
i_offset
;
break
;
case
AOUT_CHAN_RIGHT
:
p_
filter
->
p_
sys
->
i_right
=
i_offset
;
p_sys
->
i_right
=
i_offset
;
break
;
case
AOUT_CHAN_REARLEFT
:
p_
filter
->
p_
sys
->
i_rear_left
=
i_offset
;
p_sys
->
i_rear_left
=
i_offset
;
break
;
case
AOUT_CHAN_REARCENTER
:
p_
filter
->
p_
sys
->
i_rear_center
=
i_offset
;
p_sys
->
i_rear_center
=
i_offset
;
break
;
case
AOUT_CHAN_REARRIGHT
:
p_
filter
->
p_
sys
->
i_rear_right
=
i_offset
;
p_sys
->
i_rear_right
=
i_offset
;
break
;
}
++
i_offset
;
...
...
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