]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
no, my PC can't take 1024 bytes buffer size in SDL (clicks in background). Increased...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 24 Aug 2008 19:15:27 +0000 (19:15 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 24 Aug 2008 19:15:27 +0000 (19:15 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8477 d7cf8633-e32d-0410-b094-e92efae38249

snd_sdl.c

index 144deba9e5391b645d5f37c7dd4a8f3513840b29..667d56b37fcb58c072c38ea17b082336743b43ba 100644 (file)
--- 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;