cute_headers icon indicating copy to clipboard operation
cute_headers copied to clipboard

cute_sound.h - fix for multiple looping sounds causing pop

Open manbearcar opened this issue 8 months ago • 1 comments

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!

manbearcar avatar Apr 18 '25 21:04 manbearcar

Make a pull request :)

RandyGaul avatar Apr 20 '25 18:04 RandyGaul