From 328f43d4dcdb84817c9a687cb323b7dd09d063a5 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 20 Feb 2003 22:07:47 +0000 Subject: [PATCH] sleep(n) sleeps for n *seconds*; you want SDL_Delay(n), which sleeps for n milliseconds --- stepmania/src/arch/Sound/RageSoundDriver_Null.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/arch/Sound/RageSoundDriver_Null.cpp b/stepmania/src/arch/Sound/RageSoundDriver_Null.cpp index 7c3f9281c4..7e81190cb1 100644 --- a/stepmania/src/arch/Sound/RageSoundDriver_Null.cpp +++ b/stepmania/src/arch/Sound/RageSoundDriver_Null.cpp @@ -29,7 +29,7 @@ void RageSound_Null::MixerThread() { /* SOUNDMAN will be set once RageSoundManager's ctor returns and * assigns it; we might get here before that happens, though. */ - while(!SOUNDMAN && !shutdown) sleep(10); + while(!SOUNDMAN && !shutdown) SDL_Delay(10); /* not sure if a nansleep is needed, but certainly helps * when there is LOG->Trace in GetData() */