remove SOUNDMAN->PlayOnce

This commit is contained in:
Glenn Maynard
2007-01-18 09:05:13 +00:00
parent 9584ce2b41
commit 75da18955d
3 changed files with 12 additions and 17 deletions
-13
View File
@@ -178,19 +178,6 @@ void RageSoundManager::AddLoadedSound( const RString &sPath_, RageSoundReader_Pr
m_mapPreloadedSounds[sPath] = pSound->Copy();
}
/* Don't hold the lock when we don't have to. We call this function from other
* threads, to avoid stalling the gameplay thread. */
void RageSoundManager::PlayOnce( RString sPath )
{
/* We want this to start quickly, so don't try to prebuffer it. */
RageSound *pSound = new RageSound;
pSound->Load( sPath, false );
pSound->Play();
pSound->DeleteSelfWhenFinishedPlaying();
}
void RageSoundManager::SetMixVolume( float fMixVol )
{
ASSERT_M( fMixVol >= 0 && fMixVol <= 1, ssprintf("%f",fMixVol) );