drop LoadAndPlayIfNotAlready

This commit is contained in:
Glenn Maynard
2003-01-03 02:52:00 +00:00
parent f04d8d6f44
commit f6ef28fac5
2 changed files with 0 additions and 21 deletions
-19
View File
@@ -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();