00001
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef _Sound_H_
00023 #define _Sound_H_
00024
00025 #include <config.h>
00026 #include <dsound.h>
00027
00028 #if defined(CONF_DSOUND)
00029
00037 class Sound {
00038 public:
00046 static void play(const note_t *notes) {return dsound_play(notes);}
00052 static int playing() {return dsound_playing();}
00057 static void beep() {dsound_system(DSOUND_BEEP);}
00062 static void stop() {dsound_stop();}
00069 static void duration(const unsigned int len) {dsound_set_duration(len);}
00076 static void internote(const unsigned int len) {dsound_set_internote(len);}
00077 };
00078
00079 #else
00080 #warning Enable CONF_DSOUND to use Sound.H
00081 #endif // CONF_DSOUND
00082 #endif // _Sound_H_