From d95c8885db28e6d691e365123599e085503fa2b0 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 17 Mar 2003 20:05:49 +0000 Subject: [PATCH] fix busy looping in the null sound driver --- stepmania/src/arch/Sound/RageSoundDriver_Null.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/arch/Sound/RageSoundDriver_Null.cpp b/stepmania/src/arch/Sound/RageSoundDriver_Null.cpp index aec76a5ad1..3d8d03f9bf 100644 --- a/stepmania/src/arch/Sound/RageSoundDriver_Null.cpp +++ b/stepmania/src/arch/Sound/RageSoundDriver_Null.cpp @@ -30,8 +30,8 @@ void RageSound_Null::MixerThread() RageTimer Speaker; while(!shutdown) { - float delay_ms = float(buffersize_frames) / samplerate; - SDL_Delay(int(delay_ms / 2)); + const int delay_ms = 1000 * buffersize_frames / samplerate; + SDL_Delay(delay_ms / 2); LockMutex L(SOUNDMAN->lock);