From 2f83bed4a443e7b4d13994f086c94ec51a86fca7 Mon Sep 17 00:00:00 2001 From: divverent Date: Sun, 24 Aug 2008 19:15:27 +0000 Subject: [PATCH] no, my PC can't take 1024 bytes buffer size in SDL (clicks in background). Increased to 2048. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8477 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 144deba9..667d56b3 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 / 50.0); // 1024 bytes on 24kHz to 48kHz + buffersize = (unsigned int)ceil((double)requested->speed / 25.0); // 2048 bytes on 24kHz to 48kHz // Init the SDL Audio subsystem wantspec.callback = Buffer_Callback; -- 2.39.2