From f6ef28fac549af48026ab002e7de036bbafeb652 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 3 Jan 2003 02:52:00 +0000 Subject: [PATCH] drop LoadAndPlayIfNotAlready --- stepmania/src/RageSound.cpp | 19 ------------------- stepmania/src/RageSound.h | 2 -- 2 files changed, 21 deletions(-) diff --git a/stepmania/src/RageSound.cpp b/stepmania/src/RageSound.cpp index 8d92697ea7..cd90e5b42d 100644 --- a/stepmania/src/RageSound.cpp +++ b/stepmania/src/RageSound.cpp @@ -756,25 +756,6 @@ void RageSound::SetPlaybackRate( float NewSpeed ) } } -/* This is used to start music. It probably belongs in RageSoundManager. */ -void RageSound::LoadAndPlayIfNotAlready( CString sSoundFilePath ) -{ - LockMut(SOUNDMAN->lock); - if( GetLoadedFilePath() == sSoundFilePath && IsPlaying() ) - return; // do nothing - - Load( sSoundFilePath ); - if(IsPlaying()) - StopPlaying(); - - /* Use defaults: the beginning, the whole file. */ - SetStartSeconds(); - SetLengthSeconds(); - SetPositionSamples(); - SetStopMode(M_LOOP); - StartPlaying(); -} - void CircBuf::reserve(unsigned n) { clear(); diff --git a/stepmania/src/RageSound.h b/stepmania/src/RageSound.h index d7aeeefdeb..30ce020182 100644 --- a/stepmania/src/RageSound.h +++ b/stepmania/src/RageSound.h @@ -49,8 +49,6 @@ public: * they can be ignored most of the time, so we continue to work if a file * is broken or missing.) */ bool Load(CString fn, bool cache = true); - - void LoadAndPlayIfNotAlready( CString sSoundFilePath ); void Unload(); void SetStopMode(StopMode_t m) { StopMode = m; }