From: divverent Date: Sun, 24 Aug 2008 10:58:46 +0000 (+0000) Subject: SDL: reduce the sound buffer size (too much lag otherwise) X-Git-Tag: xonotic-v0.1.0preview~2111 X-Git-Url: https://git.xonotic.org/?a=commitdiff_plain;h=eb59c580e111af2abb37775ef320151776fe84d1;p=xonotic%2Fdarkplaces.git SDL: reduce the sound buffer size (too much lag otherwise) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8473 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/snd_sdl.c b/snd_sdl.c index dae644de..144deba9 100644 --- a/snd_sdl.c +++ b/snd_sdl.c @@ -101,7 +101,7 @@ qboolean SndSys_Init (const snd_format_t* requested, snd_format_t* suggested) return false; } - buffersize = (unsigned int)ceil((double)requested->speed / 20.0); + buffersize = (unsigned int)ceil((double)requested->speed / 50.0); // 1024 bytes on 24kHz to 48kHz // Init the SDL Audio subsystem wantspec.callback = Buffer_Callback;