From 9df986c8a16bee3fe75b7de9ced7fd4eb5d9e4c5 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 20 Jan 2003 09:22:30 +0000 Subject: [PATCH] speedup --- stepmania/src/arch/Sound/RageSoundDriver_DSound.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/stepmania/src/arch/Sound/RageSoundDriver_DSound.cpp b/stepmania/src/arch/Sound/RageSoundDriver_DSound.cpp index 95a1591a07..cf5c6f8a6c 100644 --- a/stepmania/src/arch/Sound/RageSoundDriver_DSound.cpp +++ b/stepmania/src/arch/Sound/RageSoundDriver_DSound.cpp @@ -22,10 +22,11 @@ RageSoundManager *SOUNDMAN = NULL; const int channels = 2; const int samplesize = 2 * channels; /* 16-bit */ const int samplerate = 44100; -/* With this driver, we want a large buffer size. Since latency is detached - * from write-ahead, this won't cause lag. Since we're filling every playing - * sound buffer separately, a larger buffer here means less overhead. */ -const int buffersize_frames = 1024*16; /* in frames */ + +/* The total write-ahead. Don't make this *too* high; we fill the entire + * buffer when we start playing, so it can cause frame skips. This should be + * high enough that sound cards won't skip. */ +const int buffersize_frames = 1024*4; /* in frames */ const int buffersize = buffersize_frames * samplesize; /* in bytes */ const int num_chunks = 8;