You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bomberclone/include/sound.h

50 lines
799 B

/* $Id: sound.h,v 1.3 2003/09/23 20:28:24 stpohle Exp $ */
/* include file for the sound */
#ifndef _SOUND_H_
#define _SOUND_H_
#include "bomberclone.h"
#if HAVE_SDL_MIXER
#include <SDL_mixer.h>
#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