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
eb1795eb
Commit
eb1795eb
authored
Oct 31, 2005
by
Benjamin Pracht
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a mistake in the resampling algorithm (hope I didn't forget any place)
parent
28efeeec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
modules/audio_filter/resampler/linear.c
modules/audio_filter/resampler/linear.c
+3
-3
No files found.
modules/audio_filter/resampler/linear.c
View file @
eb1795eb
...
...
@@ -188,7 +188,7 @@ static void DoWork( aout_instance_t * p_aout, aout_filter_t * p_filter,
{
i_chan
--
;
p_out
[
i_chan
]
=
p_prev_sample
[
i_chan
];
p_out
[
i_chan
]
+=
(
(
p_prev_sample
[
i_chan
]
-
p_in
[
i_chan
]
)
p_out
[
i_chan
]
+=
(
p_in
[
i_chan
]
-
(
p_prev_sample
[
i_chan
]
)
*
p_sys
->
i_remainder
/
p_filter
->
output
.
i_rate
);
}
...
...
@@ -209,8 +209,8 @@ static void DoWork( aout_instance_t * p_aout, aout_filter_t * p_filter,
{
i_chan
--
;
p_out
[
i_chan
]
=
p_in
[
i_chan
];
p_out
[
i_chan
]
+=
(
(
p_in
[
i_chan
]
-
p_in
[
i_chan
+
i_nb_channels
]
)
p_out
[
i_chan
]
+=
(
(
p_in
[
i_chan
+
i_nb_channels
]
-
p_in
[
i_chan
]
)
*
p_sys
->
i_remainder
/
p_filter
->
output
.
i_rate
);
}
p_out
+=
i_nb_channels
;
...
...
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