Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

rtsound.h

Go to the documentation of this file.
00001 /*
00002  * rtsound.h
00003  * 
00004  * Copyright (c) 2000-2004 by Florian Fischer (florianfischer@gmx.de)
00005  * and Martin Trautmann (martintrautmann@gmx.de) 
00006  * 
00007  * This file may be distributed and/or modified under the terms of the 
00008  * GNU General Public License version 2 as published by the Free Software 
00009  * Foundation. 
00010  * 
00011  * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00012  * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
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 } // namespace
00068 
00069 #endif

This is the RoboTour API documentation version 0.1 • Copyright (C) by Florian Fischer