From fa9db049c14fc4bf6b20bbcf697dea3f6fc34d72 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 23 Dec 2006 10:10:28 +0000 Subject: [PATCH] remove unused --- stepmania/src/RageSoundManager.cpp | 23 ----------------------- stepmania/src/RageSoundManager.h | 6 ------ 2 files changed, 29 deletions(-) diff --git a/stepmania/src/RageSoundManager.cpp b/stepmania/src/RageSoundManager.cpp index 0924e55f6e..1b8be44fab 100644 --- a/stepmania/src/RageSoundManager.cpp +++ b/stepmania/src/RageSoundManager.cpp @@ -156,29 +156,6 @@ void RageSoundManager::Update() m_pDriver->Update(); } -/* Register the given sound, and return a unique ID. */ -void RageSoundManager::RegisterSound( RageSound *p ) -{ - g_SoundManMutex.Lock(); /* lock for access to all_sounds */ - all_sounds[p->GetID()] = p; - g_SoundManMutex.Unlock(); /* finished with all_sounds */ -} - -void RageSoundManager::UnregisterSound( RageSound *p ) -{ - g_SoundManMutex.Lock(); /* lock for access to all_sounds */ - all_sounds.erase( p->GetID() ); - g_SoundManMutex.Unlock(); /* finished with all_sounds */ -} - -/* Return a unique ID. */ -int RageSoundManager::GetUniqueID() -{ - LockMut(g_SoundManMutex); /* serialize iID */ - static int iID = 0; - return ++iID; -} - float RageSoundManager::GetPlayLatency() const { if( m_pDriver == NULL ) diff --git a/stepmania/src/RageSoundManager.h b/stepmania/src/RageSoundManager.h index 644e1cc595..1698b3cd8d 100644 --- a/stepmania/src/RageSoundManager.h +++ b/stepmania/src/RageSoundManager.h @@ -39,9 +39,6 @@ public: void StopMixing( RageSoundBase *snd ); /* used by RageSound */ bool Pause( RageSoundBase *snd, bool bPause ); /* used by RageSound */ int64_t GetPosition( RageTimer *pTimer ) const; /* used by RageSound */ - void RegisterSound( RageSound *p ); /* used by RageSound */ - void UnregisterSound( RageSound *p ); /* used by RageSound */ - int GetUniqueID(); /* used by RageSound */ float GetPlayLatency() const; int GetDriverSampleRate() const; @@ -63,9 +60,6 @@ private: * when they're finished playing): */ set owned_sounds; - /* A list of all sounds that currently exist, by ID. */ - map all_sounds; - map m_mapPreloadedSounds; RageSoundDriver *m_pDriver;