lanceewing / agile

Sierra AGI (Adventure Game Interpreter) engine written in C#
15 stars 7 forks source link

Popping sometimes occurs with the sounds #38

Closed lanceewing closed 2 years ago

lanceewing commented 2 years ago

For example:

lanceewing commented 2 years ago

I've found the cause for this one. This stackoverflow explains the problem:

https://stackoverflow.com/questions/34946363/pop-at-the-beginning-of-playback

...and sure enough, I'm generating a header section for the WAVE data, but NAudio doesn't need that, in fact it is playing it as if it is audio data!! ;D

Removing the header from the data has stopped the popping. I'll push the fix soon.

lanceewing commented 2 years ago

Fixed and pushed to master.