remove unused
This commit is contained in:
@@ -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 )
|
||||
|
||||
@@ -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<RageSound *> owned_sounds;
|
||||
|
||||
/* A list of all sounds that currently exist, by ID. */
|
||||
map<int,RageSound *> all_sounds;
|
||||
|
||||
map<RString, RageSoundReader_Preload *> m_mapPreloadedSounds;
|
||||
|
||||
RageSoundDriver *m_pDriver;
|
||||
|
||||
Reference in New Issue
Block a user