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
d4ccb69d
Commit
d4ccb69d
authored
Sep 27, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/audio_output/input.c: corrective audio resampling should be a lot more gradual now.
parent
49245e40
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
src/audio_output/input.c
src/audio_output/input.c
+6
-4
No files found.
src/audio_output/input.c
View file @
d4ccb69d
...
...
@@ -454,11 +454,11 @@ int aout_InputPlay( aout_instance_t * p_aout, aout_input_t * p_input,
if
(
p_input
->
i_resampling_type
==
AOUT_RESAMPLING_UP
)
{
p_input
->
pp_resamplers
[
0
]
->
input
.
i_rate
+=
1
0
;
/* Hz */
p_input
->
pp_resamplers
[
0
]
->
input
.
i_rate
+=
1
;
/* Hz */
}
else
{
p_input
->
pp_resamplers
[
0
]
->
input
.
i_rate
-=
1
0
;
/* Hz */
p_input
->
pp_resamplers
[
0
]
->
input
.
i_rate
-=
1
;
/* Hz */
}
/* Check if everything is back to normal, in which case we can stop the
...
...
@@ -467,8 +467,10 @@ int aout_InputPlay( aout_instance_t * p_aout, aout_input_t * p_input,
p_input
->
input
.
i_rate
)
{
p_input
->
i_resampling_type
=
AOUT_RESAMPLING_NONE
;
msg_Warn
(
p_aout
,
"resampling stopped after "
I64Fi
" usec"
,
mdate
()
-
p_input
->
i_resamp_start_date
);
msg_Warn
(
p_aout
,
"resampling stopped after "
I64Fi
" usec "
"(drift: "
I64Fi
")"
,
mdate
()
-
p_input
->
i_resamp_start_date
,
p_buffer
->
start_date
-
start_date
);
}
else
if
(
abs
(
(
int
)(
p_buffer
->
start_date
-
start_date
)
)
<
abs
(
p_input
->
i_resamp_start_drift
)
/
2
)
...
...
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