[quake3] Sound lag fix

Andreas Schneider mail at cynapses.org
Tue Sep 6 17:07:58 EDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ryan C. Gordon wrote:
> Andreas Schneider wrote:
> 
>>For me, alsa is broken now...
> 
> 
> Run the game with "+set sdlmixsamps 32768 +set sdldevsamps 1024"
> 

Done and works, but I have the sound lag now.

> 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.
> 

I've tried

+set sdlmixsamps 32768 +set sdldevsamps [0-1024] +set sndspeed [22050-44100]

sound is always to late...

> 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.

The SDL audio driver is ALSA ;)

Hardware:
AMD64
nForce3 board with nForce3 Soundcard

> 
> --ryan.
> 

	-- andreas

P.S.: quake3 with widescreen rocks ;)

- --
http://www.cynapses.org/ - cybernetic synapses

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFDHgUuwDudlFFJUr4RArPIAKCE8xXf1kMJCpUladfnEz5k5qgdbACdGQGD
+HSxj9qcGps6nxRXh9JIvjM=
=//6C
-----END PGP SIGNATURE-----



More information about the quake3 mailing list