From 5b90bea03bc76e9d30bfd078380ca8e5304e0820 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 9 Feb 2003 06:22:37 +0000 Subject: [PATCH] cleanup --- stepmania/src/RageSoundManager.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/stepmania/src/RageSoundManager.cpp b/stepmania/src/RageSoundManager.cpp index c25b47d3c1..df0af9c20f 100644 --- a/stepmania/src/RageSoundManager.cpp +++ b/stepmania/src/RageSoundManager.cpp @@ -244,11 +244,14 @@ void RageSoundManager::MixAudio(Sint16 *dst, const Sint16 *src, Uint32 len, floa void RageSoundManager::PlayMusic(CString file, bool loop, float start_sec, float length_sec) { - if( music->GetLoadedFilePath() == file && music->IsPlaying() ) - return; // do nothing - +// LOG->Trace("play '%s' (current '%s')", file.GetString(), music->GetLoadedFilePath().GetString()); if(music->IsPlaying()) + { + if( music->GetLoadedFilePath() == file ) + return; // do nothing + music->StopPlaying(); + } /* If file is blank, just stop. */ if(file.empty())