remove StopPlayingAllCopiesOfSound

This commit is contained in:
Glenn Maynard
2004-11-15 04:54:48 +00:00
parent de5c504191
commit 4d2503c386
2 changed files with 0 additions and 19 deletions
-18
View File
@@ -243,24 +243,6 @@ RageSound *RageSoundManager::PlaySound( RageSound &snd, const RageSoundParams *p
return sound_to_play;
}
/* Stop playing all playing sounds derived from the same parent as snd. */
void RageSoundManager::StopPlayingAllCopiesOfSound(RageSound &snd)
{
g_DeletionMutex.Lock();
vector<RageSound *> snds;
GetCopies( snd, snds );
vector<RageSound *>::iterator it;
for( it = snds.begin(); it != snds.end(); ++it )
{
if( (*it)->IsPlaying() )
(*it)->StopPlaying();
}
g_DeletionMutex.Unlock();
}
/* XXX: If this is ever called from a thread, it should take a bLockSounds parameter,
* like GetCopies. */
set<RageSound *> RageSoundManager::GetPlayingSounds() const
-1
View File
@@ -61,7 +61,6 @@ public:
void PlayOnce( CString sPath );
RageSound *PlaySound( RageSound &snd, const RageSoundParams *params );
void StopPlayingAllCopiesOfSound(RageSound &snd);
void GetCopies( RageSound &snd, vector<RageSound *> &snds, bool bLockSounds=false );