1 (edited by null7elf 2009-07-12 13:44:32)

Topic: [SOLVED] sound stutters when using pulseaudio (0.5.1, linux)

pulseaudio is a new (but coming) sound server used by some popular linux distributions and a neat piece of software, but it needs to be supported...

since it should be supported in teeworlds since v0.5.0, are there any known problems?

PS: i use gentoo linux.

2

Re: [SOLVED] sound stutters when using pulseaudio (0.5.1, linux)

pulseaudio is fully supported as of 0.5.0. Make sure you are downloading teeworlds here from teeworlds.com rather than from your distro's repo, since I know atleast ubuntu and debian both have ancient versions of teeworlds which do not support pulseaudio.

Official Teeworlds map developer and community moderator
Administrator for the Teeworlds community Teesites

3

Re: [SOLVED] sound stutters when using pulseaudio (0.5.1, linux)

hmmm... you are right, the sound stutters are coming from steady reconnects to the pulseaudio daemon! i also tried different audio settings (settings.cfg) but nothing helped...  so the problem is hiding somewhere else.

normally i compile packages myself, so distribution specific changes can't be the problem either. and just to be sure i tried the precompiled binaries -- with no success...

4

Re: [SOLVED] sound stutters when using pulseaudio (0.5.1, linux)

Since Teeworlds uses SDL, maybe you should check with other SDL games if you have the same problem.
I believe there's a package to improve pulseaudio support from SDL.
What I read for some Debian/Ubuntu distro:

apt-get install libsdl1.2debian-pulseaudio
export SDL_AUDIODRIVER=”pulse”
spl0k, aka Al`. From the HuH clan.
Noobing pwns since 01/01/1970.
TeeViewer - TeeComp

5

Re: [SOLVED] sound stutters when using pulseaudio (0.5.1, linux)

one man, two solutions! thanks again! ;-)

of course the problem lies within SDL sound output through pulseaudio. with the defaults SDL apps try to output through ALSA directly, but i "catch" this and route it through pulseaudio either way (so called ALSA wrapper)... and this seems to make problems. so we need to make sure, that SDL natively routes through pulseaudio...

SOLUTION:

  1. install sdl-1.2.12 or above with support for pulseaudio compiled in (or as plugin)

  2. put 'export SDL_AUDIODRIVER=pulse' in your ~/.bashrc

  3. $ source ~/.bashrc