partial s/RageSound/RageSoundBase/

This commit is contained in:
Glenn Maynard
2004-01-15 03:12:18 +00:00
parent 38ae3725f0
commit 71e2f1d8d7
2 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -37,19 +37,19 @@ RageSoundManager::RageSoundManager(CString drivers)
RageSoundManager::~RageSoundManager()
{
/* Clear any sounds that we own and havn't freed yet. */
set<RageSound *>::iterator j = owned_sounds.begin();
set<RageSoundBase *>::iterator j = owned_sounds.begin();
while(j != owned_sounds.end())
delete *(j++);
delete driver;
}
void RageSoundManager::StartMixing(RageSound *snd)
void RageSoundManager::StartMixing( RageSoundBase *snd )
{
driver->StartMixing(snd);
}
void RageSoundManager::StopMixing(RageSound *snd)
void RageSoundManager::StopMixing( RageSoundBase *snd )
{
driver->StopMixing(snd);
@@ -63,7 +63,7 @@ void RageSoundManager::StopMixing(RageSound *snd)
}
}
int RageSoundManager::GetPosition(const RageSound *snd) const
int RageSoundManager::GetPosition( const RageSoundBase *snd ) const
{
return driver->GetPosition(snd);
}
+4 -4
View File
@@ -14,7 +14,7 @@ class RageSoundManager
{
/* Set of sounds that we've taken over (and are responsible for deleting
* when they're finished playing): */
set<RageSound *> owned_sounds;
set<RageSoundBase *> owned_sounds;
/* Set of sounds that are finished and should be deleted. */
set<RageSoundBase *> sounds_to_delete;
@@ -34,9 +34,9 @@ public:
void SetPrefs(float MixVol);
void Update(float delta);
void StartMixing(RageSound *snd); /* used by RageSound */
void StopMixing(RageSound *snd); /* used by RageSound */
int GetPosition(const RageSound *snd) const; /* used by RageSound */
void StartMixing( RageSoundBase *snd ); /* used by RageSoundBase */
void StopMixing( RageSoundBase *snd ); /* used by RageSoundBase */
int GetPosition( const RageSoundBase *snd ) const; /* used by RageSoundBase */
float GetPlayLatency() const;
int GetDriverSampleRate( int rate ) const;
const set<RageSound *> &GetPlayingSounds() const { return playing_sounds; }