From: divverent Date: Sun, 24 Aug 2008 19:15:27 +0000 (+0000) Subject: no, my PC can't take 1024 bytes buffer size in SDL (clicks in background). Increased... X-Git-Tag: xonotic-v0.1.0preview~2107 X-Git-Url: https://git.xonotic.org/?a=commitdiff_plain;h=2f83bed4a443e7b4d13994f086c94ec51a86fca7;p=xonotic%2Fdarkplaces.git 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 --- 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;