Skip to content

Sound is chopped on windows #15

@tuarrep

Description

@tuarrep

Plausible explanation
Windows has a clock resolution problem. A fox was shipped in 2020 but the new API isn't implemented by golang yet.
See this Reddit thread: https://www.reddit.com/r/golang/comments/j4mj33/real_time_problem_on_windows/
And this golang issue: golang/go#8687

Solution to be tested:*
Increase buffer size to be longer than the clock resolution (about 15ms). Nowadays we are around 11ms (512 bytes for 44100 sample rate). 1024 samples per buffer lead to 22/23 ms.

First attempt: Tweak program priority

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions