rename RageSoundManager::StopPlayingSound to RageSoundManager::StopPlayingAllCopiesOfSound

This commit is contained in:
Glenn Maynard
2004-04-07 03:42:14 +00:00
parent e1d583dac4
commit 960bc1eaac
3 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -82,7 +82,7 @@ RageSound::~RageSound()
/* If we're a "master" sound (not a copy), tell RageSoundManager to /* If we're a "master" sound (not a copy), tell RageSoundManager to
* stop mixing us and everything that's copied from us. */ * stop mixing us and everything that's copied from us. */
if(original == this) if(original == this)
SOUNDMAN->StopPlayingSound(*this); SOUNDMAN->StopPlayingAllCopiesOfSound(*this);
Unload(); Unload();
@@ -590,7 +590,7 @@ void RageSound::StopPlaying()
stopped_position = (int) GetPositionSecondsInternal(); 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->StopMixing(this);
SOUNDMAN->lock.Lock(); SOUNDMAN->lock.Lock();
@@ -609,7 +609,7 @@ RageSound *RageSound::Play( const RageSoundParams *params )
void RageSound::Stop() void RageSound::Stop()
{ {
SOUNDMAN->StopPlayingSound(*this); SOUNDMAN->StopPlayingAllCopiesOfSound(*this);
} }
+1 -1
View File
@@ -181,7 +181,7 @@ RageSound *RageSoundManager::PlaySound( RageSound &snd, const RageSoundParams *p
return sound_to_play; return sound_to_play;
} }
void RageSoundManager::StopPlayingSound(RageSound &snd) void RageSoundManager::StopPlayingAllCopiesOfSound(RageSound &snd)
{ {
LockMut(lock); LockMut(lock);
+1 -1
View File
@@ -54,7 +54,7 @@ public:
void PlayOnce( CString sPath ); void PlayOnce( CString sPath );
RageSound *PlaySound( RageSound &snd, const RageSoundParams *params ); 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 /* A list of all sounds that currently exist. RageSound adds and removes
* itself to this. */ * itself to this. */