From eb59c580e111af2abb37775ef320151776fe84d1 Mon Sep 17 00:00:00 2001 From: divverent Date: Sun, 24 Aug 2008 10:58:46 +0000 Subject: [PATCH] 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 --- snd_sdl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2