diff --git a/stepmania/src/ActorUtil.cpp b/stepmania/src/ActorUtil.cpp index 9c81968541..8e256ceb2b 100644 --- a/stepmania/src/ActorUtil.cpp +++ b/stepmania/src/ActorUtil.cpp @@ -586,6 +586,7 @@ void ActorUtil::SortByZPosition( vector &vActors ) static const char *FileTypeNames[] = { "Bitmap", + "Sound", "Movie", "Directory", "Xml", @@ -607,6 +608,10 @@ FileType ActorUtil::GetFileType( const RString &sPath ) sExt=="jpg" || sExt=="gif" || sExt=="bmp" ) return FT_Bitmap; + else if( + sExt=="ogg" || + sExt=="wav" || + sExt=="mp3" ) return FT_Sound; else if( sExt=="avi" || sExt=="mpeg" || diff --git a/stepmania/src/ActorUtil.h b/stepmania/src/ActorUtil.h index b2ee9a1698..a8adfcc8e2 100644 --- a/stepmania/src/ActorUtil.h +++ b/stepmania/src/ActorUtil.h @@ -26,6 +26,7 @@ Actor *CreateActor() { return new T; } enum FileType { FT_Bitmap, + FT_Sound, FT_Movie, FT_Directory, FT_Xml,