rename RageSoundManager::StopPlayingSound to RageSoundManager::StopPlayingAllCopiesOfSound
This commit is contained in:
@@ -82,7 +82,7 @@ RageSound::~RageSound()
|
||||
/* If we're a "master" sound (not a copy), tell RageSoundManager to
|
||||
* stop mixing us and everything that's copied from us. */
|
||||
if(original == this)
|
||||
SOUNDMAN->StopPlayingSound(*this);
|
||||
SOUNDMAN->StopPlayingAllCopiesOfSound(*this);
|
||||
|
||||
Unload();
|
||||
|
||||
@@ -590,7 +590,7 @@ void RageSound::StopPlaying()
|
||||
|
||||
stopped_position = (int) GetPositionSecondsInternal();
|
||||
|
||||
/* Tell the sound manager to stop mixing this sound. */
|
||||
/* Tell the sound driver to stop mixing this sound. */
|
||||
SOUNDMAN->StopMixing(this);
|
||||
|
||||
SOUNDMAN->lock.Lock();
|
||||
@@ -609,7 +609,7 @@ RageSound *RageSound::Play( const RageSoundParams *params )
|
||||
|
||||
void RageSound::Stop()
|
||||
{
|
||||
SOUNDMAN->StopPlayingSound(*this);
|
||||
SOUNDMAN->StopPlayingAllCopiesOfSound(*this);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -181,7 +181,7 @@ RageSound *RageSoundManager::PlaySound( RageSound &snd, const RageSoundParams *p
|
||||
return sound_to_play;
|
||||
}
|
||||
|
||||
void RageSoundManager::StopPlayingSound(RageSound &snd)
|
||||
void RageSoundManager::StopPlayingAllCopiesOfSound(RageSound &snd)
|
||||
{
|
||||
LockMut(lock);
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ public:
|
||||
void PlayOnce( CString sPath );
|
||||
|
||||
RageSound *PlaySound( RageSound &snd, const RageSoundParams *params );
|
||||
void StopPlayingSound(RageSound &snd);
|
||||
void StopPlayingAllCopiesOfSound(RageSound &snd);
|
||||
|
||||
/* A list of all sounds that currently exist. RageSound adds and removes
|
||||
* itself to this. */
|
||||
|
||||
Reference in New Issue
Block a user