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

Sound is chopped on windows #15

Open
tuarrep opened this issue Aug 8, 2020 · 0 comments
Open

Sound is chopped on windows #15

tuarrep opened this issue Aug 8, 2020 · 0 comments
Labels
bug Something isn't working hacktoberfest
Milestone

Comments

@tuarrep
Copy link
Owner

tuarrep commented Aug 8, 2020

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

@tuarrep tuarrep added the bug Something isn't working label Aug 8, 2020
@tuarrep tuarrep added this to the V1 milestone Aug 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working hacktoberfest
Projects
None yet
Development

No branches or pull requests

1 participant