Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
087a7a03
Commit
087a7a03
authored
Dec 24, 2002
by
Jean-Paul Saman
Browse files
Cosmetic changes.
parent
8cfc8ab2
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/audio_filter/converter/fixed32tos16.c
View file @
087a7a03
...
...
@@ -2,7 +2,7 @@
* fixed32tos16.c : converter from fixed32 to signed 16 bits integer
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: fixed32tos16.c,v 1.
9
2002/12/24 1
5:28:57 massiot
Exp $
* $Id: fixed32tos16.c,v 1.
10
2002/12/24 1
9:09:12 jpsaman
Exp $
*
* Authors: Jean-Paul Saman <jpsaman@wxs.nl>
*
...
...
@@ -195,14 +195,17 @@ static void DoWork( aout_instance_t * p_aout, aout_filter_t * p_filter,
int
i
;
vlc_fixed_t
*
p_in
=
(
vlc_fixed_t
*
)
p_in_buf
->
p_buffer
;
s16
*
p_out
=
(
s16
*
)
p_out_buf
->
p_buffer
;
s16
sample
;
// static struct audio_dither dither;
#if 0
static struct audio_dither dither;
#endif
for
(
i
=
p_in_buf
->
i_nb_samples
*
aout_FormatNbChannels
(
&
p_filter
->
input
)
;
i
--
;
)
{
#if 0
/* Accurate scaling */
// p_out = mpg321_s24_to_s16_pcm(16, *p_in++, &dither);
*p_out++ = mpg321_s24_to_s16_pcm(16, *p_in++, &dither);
#endif
/* Fast Scaling */
*
p_out
++
=
s24_to_s16_pcm
(
*
p_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