/* $Id: sound.h,v 1.1 2003/09/21 20:15:28 stpohle Exp $ */ /* include file for the sound */ #ifndef _SOUND_H_ #define _SOUND_H_ #include "bomberclone.h" #if HAVE_SDL_MIXER #include #else #define Mix_Chunk void #define Mix_Music void #endif enum _soundsample { SND_dead = 0, SND_explode, SND_bombdrop, SND_max }; struct __snd { unsigned char inited; Mix_Chunk *sample[SND_max]; // henqvist Mix_Music *music; // henqvist int audio_rate; Uint16 audio_format; int audio_channels; signed char playmusic; signed char playsound; } typedef _snd; extern _snd snd; void snd_play(int samplenr); void snd_music_start(); void snd_music_stop(); void snd_init(); void snd_load(char *tilesetname); void snd_free (); void snd_options (); void snd_shutdown (); #endif