51aa7b951c43992f942fc5b2f79915bfb1a5890a
[supertux.git] / src / scripting / sound.h
1 #ifndef __SOUND_H__
2 #define __SOUND_H__
3
4 namespace Scripting
5 {
6
7 /**
8  * This class allows manipulating the sound output of the game
9  */
10 class Sound
11 {
12 public:
13   void play_music(const std::string& musicfile);
14   /**
15    * Play a sound effect. The name should be without path or .wav extension
16    */
17   void play(const std::string& soundfile);
18
19 #ifndef SCRIPTING_API
20   Sound();
21   ~Sound();
22 #endif
23 };
24
25 }
26
27 #endif
28