tuarrep/sounddrop

Sound is chopped on windows

Opened this issue · 0 comments

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