1 // BlinkenSisters - Hunt for the Lost Pixels
2 //     Bringing back the fun of the 80s
3 //
4 // (C) 2005-07 Rene Schickbauer, Wolfgang Dautermann
5 //
6 // See License.txt for licensing information
7 //
8 
9 
10 #ifndef SOUND_H
11 #define SOUND_H
12 
13 typedef enum _FX_SOUNDS {
14 	FX_COLLECT_PIXEL = 0,
15 	FX_KILL_MONSTER,
16 	FX_KILL_PLAYER,
17 	FX_LEVEL_FINISHED,
18 	FX_MENU,
19 	FX_RESPAWNPOINT,
20 	FX_MAX_PREDEF
21 } FX_SOUNDS;
22 
23 void initSound();
24 void soundStartMusic(const char* fname, bool playOnce = false);
25 void soundStopMusic();
26 void soundPlayFX(Uint32 fx);
27 void deInitSound();
28 void soundMusicFinished();
29 
30 Uint32 addSoundFXLua(char* fname);
31 void soundPlayFXLua(Uint32 fx);
32 void initSoundFXLua();
33 void deInitSoundFXLua();
34 void soundStartVideoFX(SDL_RWops* src);
35 void soundStopVideoFX();
36 
37 bool soundPlayOnceFinished();
38 
39 
40 #endif // SOUND_H
41