This commit is contained in:
Glenn Maynard
2003-10-29 19:39:02 +00:00
parent 2824bf6049
commit ecc9ba0ef9
+4 -7
View File
@@ -31,13 +31,10 @@ RandomSample::~RandomSample()
bool RandomSample::Load( CString sFilePath, int iMaxToLoad )
{
CString sDir, sFName, sExt;
splitrelpath( sFilePath, sDir, sFName, sExt );
sExt.MakeLower();
if( sExt == "" ) return LoadSoundDir( sFilePath, iMaxToLoad );
else return LoadSound( sFilePath );
if( GetExtension(sFilePath) == "" )
return LoadSoundDir( sFilePath, iMaxToLoad );
else
return LoadSound( sFilePath );
}
void RandomSample::UnloadAll()