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.
41 lines
637 B
41 lines
637 B
/* $Id: sound.h,v 1.1 2003/05/26 20:35:43 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
|
|
|
|
} 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 ();
|
|
|
|
#endif |