Skip to content

cute_sound.h - fix for multiple looping sounds causing pop #403

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

Open
manbearcar opened this issue Apr 18, 2025 · 1 comment
Open

cute_sound.h - fix for multiple looping sounds causing pop #403

manbearcar opened this issue Apr 18, 2025 · 1 comment

Comments

@manbearcar
Copy link

manbearcar commented Apr 18, 2025

Hi, I had an issue with playing two looping sounds at the same time. When one sound looped it would cause a little glitch.

at line 2452, samples_needed -= samples_to_write; is affecting every subsequent sound.

so I just made a fix by resetting samples_needed to it's initial value at the top of the do loop.

Hope this makes sense!

@RandyGaul
Copy link
Owner

Make a pull request :)

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