00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00022 #ifndef __LRT_SOUND__
00023 #define __LRT_SOUND__
00024
00025 #include "rtstring.h"
00026
00027 namespace lrt {
00028
00036 class Sound
00037 {
00038 public:
00040 static bool isSupported();
00042 static bool isPresent(const String& logicalSoundName);
00053 static bool play(const String& logicalSoundName, bool sync = false, bool stop = true);
00056 static String getExtension();
00058 static void addSoundFolder(const String& folder);
00059
00060 private:
00061 Sound() {}
00062 ~Sound() {}
00063 static String resolve(const String& logicalSoundName);
00064 static Vector<String> extraSoundFolders;
00065 };
00066
00067 }
00068
00069 #endif