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
66075dcf
Commit
66075dcf
authored
Jul 21, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PulseAudio: reuse the nwe vlc_aout.h defines
parent
ccb049c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
modules/audio_output/pulse.c
modules/audio_output/pulse.c
+2
-6
No files found.
modules/audio_output/pulse.c
View file @
66075dcf
...
...
@@ -140,10 +140,6 @@ static void stream_state_cb(pa_stream *s, void *userdata)
}
/* Latency management and lip synchronization */
/* Values from EBU R37 */
#define AOUT_EARLY_TOLERANCE 40000
#define AOUT_LATE_TOLERANCE 60000
static
void
stream_latency_cb
(
pa_stream
*
s
,
void
*
userdata
)
{
aout_instance_t
*
aout
=
userdata
;
...
...
@@ -182,11 +178,11 @@ static void stream_latency_cb(pa_stream *s, void *userdata)
/* NOTE: AOUT_MAX_RESAMPLING (10%) is way too high... */
const
int
limit
=
inrate
>>
6
;
if
(
delta
<
-
AOUT_
LATE_TOLERANCE
)
{
if
(
delta
<
-
AOUT_
MAX_PTS_DELAY
)
{
msg_Warn
(
aout
,
"too late by %"
PRId64
" us"
,
-
delta
);
if
(
change
<
0
)
delta
+=
change
;
/* be more severe if really out of sync */
}
else
if
(
delta
>
+
AOUT_
EARLY_TOLER
ANCE
)
{
}
else
if
(
delta
>
+
AOUT_
MAX_PTS_ADV
ANCE
)
{
msg_Warn
(
aout
,
"too early by %"
PRId64
" us"
,
delta
);
if
(
change
>
0
)
delta
+=
change
;
...
...
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