truelight@0: #ifndef SOUND_H truelight@0: #define SOUND_H truelight@0: truelight@0: typedef struct Mixer Mixer; truelight@0: truelight@0: typedef struct MusicFileSettings { truelight@0: byte playlist; truelight@0: byte music_vol; truelight@0: byte effect_vol; truelight@0: byte custom_1[33]; truelight@0: byte custom_2[33]; truelight@0: bool btn_down; truelight@0: bool shuffle; truelight@0: } MusicFileSettings; truelight@0: truelight@0: VARDEF byte _music_wnd_cursong; truelight@0: VARDEF bool _song_is_active; truelight@0: VARDEF byte _cur_playlist[33]; truelight@0: VARDEF MusicFileSettings msf; truelight@0: VARDEF Mixer *_mixer; truelight@0: truelight@0: bool MxInitialize(uint rate, const char *filename); truelight@0: void MxMixSamples(Mixer *mx, void *buffer, uint samples); truelight@0: truelight@0: #endif /* SOUND_H */