From 9d4ccdafbf86f6ec798978290c3939789c300ab7 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 24 Aug 2004 22:24:06 +0000 Subject: [PATCH] comment --- .../src/arch/Sound/RageSoundDriver_Generic_Software.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/stepmania/src/arch/Sound/RageSoundDriver_Generic_Software.cpp b/stepmania/src/arch/Sound/RageSoundDriver_Generic_Software.cpp index f4e386dc74..757c52b62d 100644 --- a/stepmania/src/arch/Sound/RageSoundDriver_Generic_Software.cpp +++ b/stepmania/src/arch/Sound/RageSoundDriver_Generic_Software.cpp @@ -326,7 +326,11 @@ void RageSound_Generic_Software::StartMixing( RageSoundBase *snd ) int BufferSize = frames_to_buffer; /* If a sound is streaming from disk, use a bigger buffer, so we don't underrun - * if a drive seek takes too long. */ + * the BGM if a drive seek takes too long. Note that in this case, we'll still + * underrun any other sounds that are playing, even if they're preloaded. This + * is less of a problem, since the music position isn't based on those. It could + * be fixed by having two decoding threads; one for streaming sounds and one for + * non-streaming sounds. */ if( s.snd->IsStreamingFromDisk() ) BufferSize = max( BufferSize, min_streaming_buffer_size ); s.Allocate( BufferSize );