[quake3] Sound lag fix

Ryan C. Gordon icculus at clutteredmind.org
Tue Sep 6 16:11:18 EDT 2005


Andreas Schneider wrote:
> For me, alsa is broken now...

Run the game with "+set sdlmixsamps 32768 +set sdldevsamps 1024"

sdlmixsamps can be as big as you want, it just takes more memory; that's
how much space you have for the engine to mix ahead. Bigger is better,
but the default is probably fine.

sdldevsamps is how much SDL wants to feed the audio device at a time.
Bigger numbers result in more audio latency, smaller number risk skips.
The defaults were halved in latest patch, which is probably why people
hear skipping now.

If you have a really fast machine that can keep ahead of the audio
device, you can get away with 256 samples at 44100Khz (works here)...512
to 1024 is probably more reasonable for everyone else, though. Lower
frequencies (the game defaults to 22050) can work with less samples at a
time.

Also, please make sure you're using an SDL with ALSA if you want ALSA.
If you get a console message that says "SDL audio driver is
"(UNKNOWN)"", then your SDL is misconfigured.

--ryan.




More information about the quake3 mailing list