Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
439
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
03507dbd
Commit
03507dbd
authored
1 year ago
by
Thomas Guillem
Committed by
Steve Lhomme
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
aout: update aout_TimingReport()
parent
ec735292
No related branches found
No related tags found
Loading
Pipeline
#425356
passed with stage
Stage:
in 22 minutes and 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/vlc_aout.h
+15
-6
15 additions, 6 deletions
include/vlc_aout.h
with
15 additions
and
6 deletions
include/vlc_aout.h
+
15
−
6
View file @
03507dbd
...
...
@@ -303,15 +303,24 @@ struct audio_output
/**
* Report a new timing point
*
* system_ts doesn't have to be close to vlc_tick_now(). Any valid { system_ts,
* audio_ts } points in the past are sufficient to update the clock.
*
* \note audio_ts starts at 0 and should not take the block PTS into account.
*
* It is important to report the first point as soon as possible (and the
* following points if the audio delay take some time to be stabilized). Once
* the audio is stabilized, it is recommended to report timing points every
few
* the audio is stabilized, it is recommended to report timing points every
* seconds.
*
* This function can be called from the play() callback or from any threads
* after the first play(). This should not be called after a flush(), a stop(),
* a drain() or while paused. After a flush(), play() need to be called again
* before reporting a new timing. In that case, audio_ts should start again at
* 0 (for the first sample played).
*
* \param aout the audio output instance
* \param system_ts system timestamp when audio_ts is played, based on
* vlc_tick_now(), can be now, in the past or in the future.
* \param audio_ts audio timestamp played at system_ts, starts at 0 for the
* first sample played (must not take block->i_pts, passed in play(), into
* account).
*
*/
static
inline
void
aout_TimingReport
(
audio_output_t
*
aout
,
vlc_tick_t
system_ts
,
vlc_tick_t
audio_ts
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment