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

[raudio] Audio distortion in Chromium #1299

Closed
RandomErrorMessage opened this issue Jul 8, 2020 · 1 comment
Closed

[raudio] Audio distortion in Chromium #1299

RandomErrorMessage opened this issue Jul 8, 2020 · 1 comment

Comments

@RandomErrorMessage
Copy link
Contributor

RandomErrorMessage commented Jul 8, 2020

Issue description

Chromium seems to do a poor job at updating it's audio stream. Under heavier load than the raudio examples it becomes extremely choppy and distorted. I was able to resolve this issue by increasing the miniaudio config.periodSizeInMilliseconds to about 30 (instead of the default 10). There is an issue on this mackron/miniaudio#150

Note that "heavier load" does not imply low framerate, just that the issue does not arise from the stock examples.

In addition, Brave Browser seems to be very affected by this to the point where even the examples on raylib.com cause the issue. The config.periodSizeInMilliseconds fix works for this as well. I have opened an issue with the Brave browser since their issue is divergent from Chromium's behavior (which plays the examples fine): brave/brave-browser#10619

Environment

  • Linux, Chromium
@raysan5
Copy link
Owner

raysan5 commented Jul 10, 2020

@RandomErrorMessage Thanks for reporting, I added a review to your PR.

@raysan5 raysan5 closed this as completed Jul 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants