From b89305d95836d407b08fdf5936ff6f1672e43731 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 15 Nov 2004 05:25:57 +0000 Subject: [PATCH] call SOUNDMAN->Shutdown --- stepmania/src/StepMania.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index a2298410bc..975ee81e8f 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -1160,6 +1160,12 @@ int main(int argc, char* argv[]) } #endif + /* First, tell SOUND that we're shutting down. This signals sound drivers to + * stop sounds, which we want to do before any threads that may have started sounds + * are closed; this prevents annoying DirectSound glitches and delays. */ + if( SOUNDMAN ) + SOUNDMAN->Shutdown(); + SAFE_DELETE( SCREENMAN ); SAFE_DELETE( NSMAN ); /* Delete INPUTMAN before the other INPUTFILTER handlers, or an input