For a long time, since I use ubuntu hardy heron, i switch sound off, because it cause it to hang. Now I fixed it.
The solution is, to install libsdl1.2-esd. This would make the sdl library to use esd instead of alsa. And it works with pulse audio too. The command is
sudo apt-get install libsdl1.2-esd