RSM->PlayMusic("") stops the music (so we can have a blank

music metric stop any music)
This commit is contained in:
Glenn Maynard
2003-01-19 10:02:44 +00:00
parent 1c5f995296
commit 86d71eaf4e
+5
View File
@@ -248,6 +248,11 @@ void RageSoundManager::PlayMusic(CString file, bool loop, float start_sec, float
if(music->IsPlaying())
music->StopPlaying();
/* If file is blank, just stop. */
if(file.empty())
return;
music->Load( file, false );
music->SetStopMode(loop? RageSound::M_LOOP:RageSound::M_STOP);