cute_headers icon indicating copy to clipboard operation
cute_headers copied to clipboard

Another popping fix for your perusal

Open userpc0000 opened this issue 8 months ago • 6 comments

Hi Randy, I was still getting a lot of popping on pitch shifted noises in my game, and I think I've found the real source of the issue (overflowing the channel buffers). Cheers -Brie

userpc0000 avatar May 05 '25 11:05 userpc0000

Interesting! Thanks a lot. Do you have an audio clip, and a tiny C program to run that repros the issue? So I can see before/after. It's ok if not, it would just save me some time.

RandyGaul avatar May 06 '25 00:05 RandyGaul

Did you see this issue here and try this patch out by any chance? https://github.com/RandyGaul/cute_headers/issues/403

RandyGaul avatar May 06 '25 00:05 RandyGaul

Hi hello! Well, I have a recording: https://www.youtube.com/watch?v=JH_AtYgAGZo It's the pitch shifted 'clang' noises that were causing the popping... weirdly only audible in debug mode for the most part. I can send you the sfx on discord if you like! (It seems to be the case that this out of bounds sampling is/was only an issue for files with a multiple of four amount of samples, which would make sense to me) As for #403... I think I've been getting that glitch too, and didn't know what was causing it. I've just done that patch (more or less) and will report back!

userpc0000 avatar May 06 '25 08:05 userpc0000

Okay, I've uploaded a more comprehensive patch addressing the resampler and looped sounds, which should also incoroporate the samples_needed patch as that variable is no longer modified in this version. I haven't tested it thoroughly yet so don't trust me too quickly.

userpc0000 avatar May 07 '25 07:05 userpc0000

Please forgive my jank commits, I barely use github xD

userpc0000 avatar May 07 '25 07:05 userpc0000

All good, I don't mind. Thanks a lot for taking some time to catch these sorts of bugs. Let me know when you want me to take a closer look and review things, whenever it's ready.

RandyGaul avatar May 07 '25 17:05 RandyGaul