SDL Sound Crackling
June 21, 2007 5:41 PM
Subscribe
Why is there a sound crackle with SDL in some (mainly open-source) games? Full details inside.
I am a developer of an open-source game called Neverball and we have a sound problem (crackling in the music, .ogg's). We think this problem stems from SDL, but have no idea what causes it or how to fix it. The SDL version we are using has changed since the last stable release of the game, but no one has seen anything that would cause issues.
Increasing the sound buffer like 500% fixes it, but this isn't practical (previous stable version was fine with current buffer). Another thing that fixes it is setting the volume in-game to 100%, but that is odd as well.
We know that some other games that use SDL have this issue as well (can't think of any ATM).
Please help!
posted by jammnrose to computers & internet (6 comments total)
In terms of SDL, what audio driver are you using? SDL is a great library, and can make life much easier, but sometimes it likes to redirect stuff so much that the direct path you thought you were getting turns out to go through 6 different steps before it actually goes to the hardware. Switching drivers can help with this immensely.
posted by devilsbrigade at 8:04 PM on June 21, 2007