Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wasapi: Improvement to lower possible cases of underruns due to coarse system timer and time-hungry user-side processing.. #307

Merged
merged 1 commit into from
Oct 3, 2020

Commits on Oct 3, 2020

  1. wasapi: Improve stability of playback in Polling Shared mode with a l…

    …ow host latency requsted (22 ms):
    
    - Implement workaround for system timer coarse granularity causing underruns by using timeBeginPeriod/timeEndPeriod APIs inside the Event and Poll thread handlers.
    - Update next sleep time of the Poll rendering loop dynamically depending on time taken for processing/rendering of audio data into the available host buffer to avoid underruns and fit processing time into periodic polling time slots.
    - Add support for time slots logging in Poll mode if PA_WASAPI_LOG_TIME_SLOTS is defined. Fixed audible glitches by preloading the whole host buffer before stream is started.
    - Fix audible glitches on stream start by preloading the whole host buffer before stream is started.
    dmitrykos committed Oct 3, 2020
    Configuration menu
    Copy the full SHA
    697fcdd View commit details
    Browse the repository at this point in the history