sleep(n) sleeps for n *seconds*; you want SDL_Delay(n),

which sleeps for n milliseconds
This commit is contained in:
Glenn Maynard
2003-02-20 22:07:47 +00:00
parent db800d366c
commit 328f43d4dc
@@ -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() */