remove RageSoundManager::PlayOnceFromDir (in SOUNDS now)

This commit is contained in:
Glenn Maynard
2004-01-15 02:56:04 +00:00
parent fed157e934
commit 97d088db50
2 changed files with 0 additions and 22 deletions
-21
View File
@@ -149,27 +149,6 @@ void RageSoundManager::PlayOnce( CString sPath )
snd->Play();
}
void RageSoundManager::PlayOnceFromDir( CString sDir )
{
if( sDir == "" )
return;
// make sure there's a slash at the end of this path
if( sDir.Right(1) != "/" )
sDir += "/";
CStringArray arraySoundFiles;
GetDirListing( sDir + "*.mp3", arraySoundFiles );
GetDirListing( sDir + "*.wav", arraySoundFiles );
GetDirListing( sDir + "*.ogg", arraySoundFiles );
if( arraySoundFiles.empty() )
return;
int index = rand() % arraySoundFiles.size();
SOUNDMAN->PlayOnce( sDir + arraySoundFiles[index] );
}
/* Standalone helpers: */
void RageSoundManager::SetPrefs(float MixVol)
-1
View File
@@ -42,7 +42,6 @@ public:
const set<RageSound *> &GetPlayingSounds() const { return playing_sounds; }
void PlayOnce( CString sPath );
static void PlayOnceFromDir( CString sDir );
RageSound *PlaySound(RageSound &snd);
void StopPlayingSound(RageSound &snd);