From a3a0b16bad257136bf984ea501d11611b090e20f Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 19 Nov 2006 00:41:50 +0000 Subject: [PATCH] "PlayTheSound"? Don't rename functions to ridiculous things like that. This works fine in VC7 and VC8, so I'm reverting it. Ask before making ugly changes. --- stepmania/src/RageSound.cpp | 2 +- stepmania/src/RageSoundManager.cpp | 4 ++-- stepmania/src/RageSoundManager.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/stepmania/src/RageSound.cpp b/stepmania/src/RageSound.cpp index ba04a2c5b5..c1550b2a05 100644 --- a/stepmania/src/RageSound.cpp +++ b/stepmania/src/RageSound.cpp @@ -647,7 +647,7 @@ RageSound *RageSound::Play( const RageSoundParams *pParams ) return NULL; } - return SOUNDMAN->PlayTheSound( *this, pParams ); + return SOUNDMAN->PlaySound( *this, pParams ); } void RageSound::Stop() diff --git a/stepmania/src/RageSoundManager.cpp b/stepmania/src/RageSoundManager.cpp index 8335b2260f..02562bc757 100644 --- a/stepmania/src/RageSoundManager.cpp +++ b/stepmania/src/RageSoundManager.cpp @@ -244,9 +244,9 @@ int RageSoundManager::GetDriverSampleRate( int iRate ) const return m_pDriver->GetSampleRate( iRate ); } -/* The return value of PlayTheSound and PlayCopyOfSound is only valid in the main +/* The return value of PlaySound and PlayCopyOfSound is only valid in the main * thread, until the next call to Update(). After that, it may be deleted. */ -RageSound *RageSoundManager::PlayTheSound( RageSound &snd, const RageSoundParams *params ) +RageSound *RageSoundManager::PlaySound( RageSound &snd, const RageSoundParams *params ) { if( snd.IsPlaying() ) return PlayCopyOfSound( snd, params ); diff --git a/stepmania/src/RageSoundManager.h b/stepmania/src/RageSoundManager.h index 6408cc13b9..4e42436de9 100644 --- a/stepmania/src/RageSoundManager.h +++ b/stepmania/src/RageSoundManager.h @@ -55,7 +55,7 @@ public: void PlayOnce( RString sPath ); - RageSound *PlayTheSound( RageSound &snd, const RageSoundParams *params = NULL ); + RageSound *PlaySound( RageSound &snd, const RageSoundParams *params = NULL ); RageSound *PlayCopyOfSound( RageSound &snd, const RageSoundParams *params = NULL ); private: