remove RageSoundManager::PlayOnceFromDir (in SOUNDS now)

This commit is contained in:
Glenn Maynard committed 2004-01-15 02:56:04 +00:00
1 parent fed157e934
commit 97d088db50
2 files changed
-22

No files matched your search

-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)