From 7a1bc59cb21b0b3aa3dddfb3a347b3325625fbad Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 21 Dec 2002 02:10:17 +0000 Subject: [PATCH] add soundman wait --- stepmania/src/arch/Sound/RageSoundDriver_DSound_Software.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stepmania/src/arch/Sound/RageSoundDriver_DSound_Software.cpp b/stepmania/src/arch/Sound/RageSoundDriver_DSound_Software.cpp index 13bc90d089..292d01b86d 100644 --- a/stepmania/src/arch/Sound/RageSoundDriver_DSound_Software.cpp +++ b/stepmania/src/arch/Sound/RageSoundDriver_DSound_Software.cpp @@ -36,6 +36,10 @@ void RageSound_DSound_Software::MixerThread() { InitThreadData("Mixer thread"); VDCHECKPOINT; + + /* 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(!shutdown) { Sleep(10);