From a99d648da51d0b0411f0dfa0e37569b6e232b96f Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 3 Jan 2004 03:11:56 +0000 Subject: [PATCH] reduce default writeahead from 8k to 4k (can probably go down to 1k on many 2.4 systems) --- stepmania/src/arch/Sound/RageSoundDriver_ALSA9_Software.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/arch/Sound/RageSoundDriver_ALSA9_Software.cpp b/stepmania/src/arch/Sound/RageSoundDriver_ALSA9_Software.cpp index 560cf8b6d7..0b0b962e96 100644 --- a/stepmania/src/arch/Sound/RageSoundDriver_ALSA9_Software.cpp +++ b/stepmania/src/arch/Sound/RageSoundDriver_ALSA9_Software.cpp @@ -22,7 +22,7 @@ const int bytes_per_frame = sizeof(Sint16) * samples_per_frame; /* Linux 2.6 has a fine-grained scheduler; use a small buffer size. Otherwise, use a larger one. */ static const unsigned max_writeahead_linux_26 = 512; -static const unsigned safe_writeahead = 1024*8; +static const unsigned safe_writeahead = 1024*4; static unsigned max_writeahead; const int num_chunks = 8;