From 9584ce2b4165b931d44584766735d58df39b1328 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 18 Jan 2007 08:48:06 +0000 Subject: [PATCH] remove RageSoundManager::PlayCopyOfSound --- stepmania/src/RageSoundManager.cpp | 13 ------------- stepmania/src/RageSoundManager.h | 2 -- 2 files changed, 15 deletions(-) diff --git a/stepmania/src/RageSoundManager.cpp b/stepmania/src/RageSoundManager.cpp index d49900da03..347e5f6a5a 100644 --- a/stepmania/src/RageSoundManager.cpp +++ b/stepmania/src/RageSoundManager.cpp @@ -144,19 +144,6 @@ int RageSoundManager::GetDriverSampleRate() const return m_pDriver->GetSampleRate(); } -RageSound *RageSoundManager::PlayCopyOfSound( RageSound &snd, const RageSoundParams *pParams ) -{ - RageSound *pSound = new RageSound( snd ); - - if( pParams ) - pSound->SetParams( *pParams ); - - pSound->StartPlaying(); - pSound->DeleteSelfWhenFinishedPlaying(); - - return pSound; -} - /* If the given path is loaded, return a copy; otherwise return NULL. * It's the caller's responsibility to delete the result. */ RageSoundReader *RageSoundManager::GetLoadedSound( const RString &sPath_ ) diff --git a/stepmania/src/RageSoundManager.h b/stepmania/src/RageSoundManager.h index 1db7c72e7a..4071d3ff90 100644 --- a/stepmania/src/RageSoundManager.h +++ b/stepmania/src/RageSoundManager.h @@ -47,8 +47,6 @@ public: void PlayOnce( RString sPath ); - RageSound *PlayCopyOfSound( RageSound &snd, const RageSoundParams *params = NULL ); - private: map m_mapPreloadedSounds;