Saturday, November 28, 2009

[Solved] No|Choppy Sound In SDL Games (Urban Terror)

I sometimes play Urban Terror which is a SDL game.
Simple DirectMedia Layer (SDL), a cross-platform software library abstracts platforms' graphics, sound, and input APIs, allowing a developer to write a computer game or other multimedia application once and run it on many operating systems.
While playing the game yesterday, the sound would start choppy and stop. Also the game wouldn't quit, instead hang at 'Closing SDL audio device...'

Turns out for some reason I had installed libsdl1.2debian-alsa which was causing the problem. To uninstall it I installed libsdl1.2debian-oss
sudo aptitude install  libsdl1.2debian-oss
After this the game played all fine. In case you don't know, urban terror is free and multiplayer FPS game and works in Linux, Mac and Windows. Click here to know more. If demo doesn't work check this out.

0 comments:

Post a Comment