Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
a8d51df7
Commit
a8d51df7
authored
Feb 25, 2004
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Disable libmad on OS X
parent
9bff9696
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
modules/audio_filter/converter/mpgatofixed32.c
modules/audio_filter/converter/mpgatofixed32.c
+8
-7
No files found.
modules/audio_filter/converter/mpgatofixed32.c
View file @
a8d51df7
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* using MAD (MPEG Audio Decoder)
* using MAD (MPEG Audio Decoder)
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001 by Jean-Paul Saman
* Copyright (C) 2001 by Jean-Paul Saman
* $Id: mpgatofixed32.c,v 1.
9 2004/01/25 18:53:06 gbazi
n Exp $
* $Id: mpgatofixed32.c,v 1.
10 2004/02/25 23:28:04 hartma
n Exp $
*
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Jean-Paul Saman <jpsaman@wxs.nl>
* Jean-Paul Saman <jpsaman@wxs.nl>
...
@@ -111,7 +111,6 @@ static void DoWork( aout_instance_t * p_aout, aout_filter_t * p_filter,
...
@@ -111,7 +111,6 @@ static void DoWork( aout_instance_t * p_aout, aout_filter_t * p_filter,
{
{
struct
aout_filter_sys_t
*
p_sys
=
p_filter
->
p_sys
;
struct
aout_filter_sys_t
*
p_sys
=
p_filter
->
p_sys
;
p_out_buf
->
i_nb_samples
=
p_in_buf
->
i_nb_samples
;
p_out_buf
->
i_nb_samples
=
p_in_buf
->
i_nb_samples
;
p_out_buf
->
i_nb_bytes
=
p_in_buf
->
i_nb_samples
*
sizeof
(
vlc_fixed_t
)
*
p_out_buf
->
i_nb_bytes
=
p_in_buf
->
i_nb_samples
*
sizeof
(
vlc_fixed_t
)
*
aout_FormatNbChannels
(
&
p_filter
->
input
);
aout_FormatNbChannels
(
&
p_filter
->
input
);
...
@@ -138,6 +137,7 @@ static void DoWork( aout_instance_t * p_aout, aout_filter_t * p_filter,
...
@@ -138,6 +137,7 @@ static void DoWork( aout_instance_t * p_aout, aout_filter_t * p_filter,
}
}
return
;
return
;
}
}
mad_synth_frame
(
&
p_sys
->
mad_synth
,
&
p_sys
->
mad_frame
);
mad_synth_frame
(
&
p_sys
->
mad_synth
,
&
p_sys
->
mad_frame
);
if
(
p_filter
->
output
.
i_format
==
VLC_FOURCC
(
'f'
,
'i'
,
'3'
,
'2'
)
)
if
(
p_filter
->
output
.
i_format
==
VLC_FOURCC
(
'f'
,
'i'
,
'3'
,
'2'
)
)
...
@@ -177,21 +177,22 @@ static void DoWork( aout_instance_t * p_aout, aout_filter_t * p_filter,
...
@@ -177,21 +177,22 @@ static void DoWork( aout_instance_t * p_aout, aout_filter_t * p_filter,
unsigned
int
i_samples
=
p_pcm
->
length
;
unsigned
int
i_samples
=
p_pcm
->
length
;
mad_fixed_t
const
*
p_left
=
p_pcm
->
samples
[
0
];
mad_fixed_t
const
*
p_left
=
p_pcm
->
samples
[
0
];
mad_fixed_t
const
*
p_right
=
p_pcm
->
samples
[
1
];
mad_fixed_t
const
*
p_right
=
p_pcm
->
samples
[
1
];
float
f_temp
=
(
float
)
FIXED32_ONE
;
switch
(
p_pcm
->
channels
)
switch
(
p_pcm
->
channels
)
{
{
case
2
:
case
2
:
while
(
i_samples
--
)
while
(
i_samples
--
)
{
{
*
p_samples
++
=
(
float
)
*
p_left
++
/
(
float
)
FIXED32_ONE
;
*
p_samples
++
=
(
float
)
*
p_left
++
/
f_temp
;
*
p_samples
++
=
(
float
)
*
p_right
++
/
(
float
)
FIXED32_ONE
;
*
p_samples
++
=
(
float
)
*
p_right
++
/
f_temp
;
}
}
break
;
break
;
case
1
:
case
1
:
while
(
i_samples
--
)
while
(
i_samples
--
)
{
{
*
p_samples
++
=
(
float
)
*
p_left
++
/
(
float
)
FIXED32_ONE
;
*
p_samples
++
=
(
float
)
*
p_left
++
/
f_temp
;
}
}
break
;
break
;
...
...
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