simplify
This commit is contained in:
@@ -31,13 +31,10 @@ RandomSample::~RandomSample()
|
|||||||
|
|
||||||
bool RandomSample::Load( CString sFilePath, int iMaxToLoad )
|
bool RandomSample::Load( CString sFilePath, int iMaxToLoad )
|
||||||
{
|
{
|
||||||
CString sDir, sFName, sExt;
|
if( GetExtension(sFilePath) == "" )
|
||||||
splitrelpath( sFilePath, sDir, sFName, sExt );
|
return LoadSoundDir( sFilePath, iMaxToLoad );
|
||||||
|
else
|
||||||
sExt.MakeLower();
|
return LoadSound( sFilePath );
|
||||||
|
|
||||||
if( sExt == "" ) return LoadSoundDir( sFilePath, iMaxToLoad );
|
|
||||||
else return LoadSound( sFilePath );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void RandomSample::UnloadAll()
|
void RandomSample::UnloadAll()
|
||||||
|
|||||||
Reference in New Issue
Block a user