Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • VLC VLC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,714
    • Issues 3,714
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 228
    • Merge requests 228
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VideoLANVideoLAN
  • VLCVLC
  • Merge requests
  • !2165

Draft: aout: add a new timing_get callback for wasapi (and all modules that can't report the latency)

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Thomas Guillem requested to merge tguillem/vlc:timeget2-wasapi into master Jun 30, 2022
  • Overview 19
  • Commits 11
  • Pipelines 1
  • Changes 10

The new event aout_TimingReport() introduced in !2018 (merged) is hard to plug in wasapi without creating a new thread and making this module fully asynchronous (But it's a shame to do so since the wasapi API is already asynchronous).

Therefore, add a new timing_get callback that is called every second, from Play or from the existing UpdateLatency function.

At the beginning, poll update points every 20ms from the decoder thread to get a valid timing as soon as possible.

With aout->time_get: Imprecision of up to 5ms

wasapi-speaker-60fps

With aout->timing_get: Imprecision of up to 0,2ms

wasapi-fixed-bt-60fps

Draft: because I still need to do more tests.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: timeget2-wasapi

VideoLAN code repository instance