remove StopPlayingAllCopiesOfSound
This commit is contained in:
@@ -243,24 +243,6 @@ RageSound *RageSoundManager::PlaySound( RageSound &snd, const RageSoundParams *p
|
|||||||
return sound_to_play;
|
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,
|
/* XXX: If this is ever called from a thread, it should take a bLockSounds parameter,
|
||||||
* like GetCopies. */
|
* like GetCopies. */
|
||||||
set<RageSound *> RageSoundManager::GetPlayingSounds() const
|
set<RageSound *> RageSoundManager::GetPlayingSounds() const
|
||||||
|
|||||||
@@ -61,7 +61,6 @@ public:
|
|||||||
void PlayOnce( CString sPath );
|
void PlayOnce( CString sPath );
|
||||||
|
|
||||||
RageSound *PlaySound( RageSound &snd, const RageSoundParams *params );
|
RageSound *PlaySound( RageSound &snd, const RageSoundParams *params );
|
||||||
void StopPlayingAllCopiesOfSound(RageSound &snd);
|
|
||||||
|
|
||||||
void GetCopies( RageSound &snd, vector<RageSound *> &snds, bool bLockSounds=false );
|
void GetCopies( RageSound &snd, vector<RageSound *> &snds, bool bLockSounds=false );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user