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
b92aee83
Commit
b92aee83
authored
May 30, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
float32 mixer: small simplification
parent
a6b9a013
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
modules/audio_mixer/float32.c
modules/audio_mixer/float32.c
+3
-6
No files found.
modules/audio_mixer/float32.c
View file @
b92aee83
...
...
@@ -77,7 +77,7 @@ static int Create( vlc_object_t *p_this )
static
void
ScaleWords
(
float
*
p_out
,
const
float
*
p_in
,
size_t
i_nb_words
,
float
f_multiplier
)
{
for
(
size_t
i
=
i_nb_words
;
i
--
;
)
for
(
size_t
i
=
0
;
i
<
i_nb_words
;
i
++
)
*
p_out
++
=
*
p_in
++
*
f_multiplier
;
}
...
...
@@ -110,9 +110,7 @@ static void DoWork( aout_mixer_t * p_mixer, aout_buffer_t * p_buffer )
{
aout_buffer_t
*
p_old_buffer
;
if
(
i_available_words
>
0
)
ScaleWords
(
p_out
,
p_in
,
i_available_words
,
f_multiplier
);
ScaleWords
(
p_out
,
p_in
,
i_available_words
,
f_multiplier
);
i_nb_words
-=
i_available_words
;
p_out
+=
i_available_words
;
...
...
@@ -128,8 +126,7 @@ static void DoWork( aout_mixer_t * p_mixer, aout_buffer_t * p_buffer )
}
else
{
if
(
i_nb_words
>
0
)
ScaleWords
(
p_out
,
p_in
,
i_nb_words
,
f_multiplier
);
ScaleWords
(
p_out
,
p_in
,
i_nb_words
,
f_multiplier
);
p_input
->
begin
=
(
void
*
)(
p_in
+
i_nb_words
);
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