From 36e7a78ea6155cd24514a2de8cab0f0a2cd79b0c Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 15 Nov 2004 05:15:06 +0000 Subject: [PATCH] remove RegisterPlayingSound, UnregisterPlayingSound --- stepmania/src/RageSoundManager.cpp | 14 -------------- stepmania/src/RageSoundManager.h | 2 -- 2 files changed, 16 deletions(-) diff --git a/stepmania/src/RageSoundManager.cpp b/stepmania/src/RageSoundManager.cpp index cc563148df..c15f36d69c 100644 --- a/stepmania/src/RageSoundManager.cpp +++ b/stepmania/src/RageSoundManager.cpp @@ -144,20 +144,6 @@ int RageSoundManager::GetUniqueID() return ++iID; } -void RageSoundManager::RegisterPlayingSound( RageSound *p ) -{ - g_SoundManMutex.Lock(); /* lock for access to playing_sounds */ - SOUNDMAN->playing_sounds.insert( p ); - g_SoundManMutex.Unlock(); /* finished with playing_sounds */ -} - -void RageSoundManager::UnregisterPlayingSound( RageSound *p ) -{ - g_SoundManMutex.Lock(); /* lock for access to playing_sounds */ - SOUNDMAN->playing_sounds.erase( p ); - g_SoundManMutex.Unlock(); /* finished with playing_sounds */ -} - void RageSoundManager::CommitPlayingPosition( int ID, int64_t frameno, int pos, int got_frames ) { /* This can be called from realtime threads; don't lock any mutexes. */ diff --git a/stepmania/src/RageSoundManager.h b/stepmania/src/RageSoundManager.h index dabb9aaff8..0997ac3573 100644 --- a/stepmania/src/RageSoundManager.h +++ b/stepmania/src/RageSoundManager.h @@ -47,8 +47,6 @@ public: void RegisterSound( RageSound *p ); /* used by RageSound */ void UnregisterSound( RageSound *p ); /* used by RageSound */ int GetUniqueID(); /* used by RageSound */ - void RegisterPlayingSound( RageSound *p ); /* used by RageSound */ - void UnregisterPlayingSound( RageSound *p ); /* used by RageSound */ void CommitPlayingPosition( int ID, int64_t frameno, int pos, int got_bytes ); /* used by drivers */ float GetPlayLatency() const; int GetDriverSampleRate( int rate ) const;