Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • gstreamer gstreamer
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 713
    • Issues 713
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 375
    • Merge requests 375
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GStreamer
  • gstreamergstreamer
  • Merge requests
  • !1529

wasapisink: reduce buffer latency in shared low-latency mode

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Henry Goffin requested to merge AMZN-hgoffin/gstreamer:lowlatency into main Jan 16, 2022
  • Overview 27
  • Commits 1
  • Changes 5

cap WASAPI buffer usage at the period size, as there is no need to fill the WASAPI buffer beyond the first device period. the ringbuffer thread has an entire period to wake up and refill the buffer before WASAPI will consume it again. the default buffer size is 25ms, which introduces 15ms of extra latency beyond the 10ms default period.

add "min-period" property on wasapisink with a default value of 2.5ms. in theory some hardware and driver combo may support periods as low as a single sample, but anything below 2.5ms is risking glitches due to typical thread scheduling delays (and is impossible to test locally).

Edited Jan 17, 2022 by Henry Goffin
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: lowlatency