summaryrefslogtreecommitdiff
path: root/include/sound.h
blob: 2962437aaeee7556ad366c601ed7865dc0157cf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

#ifndef SOUND_H

#define SOUND_H

#ifndef NO_SOUND

#include <SDL_mixer.h>
#include "main.h"

#define SOUND_GROUP_BASE 0
#define SOUND_GROUP_USER 1

typedef struct sound_struct
{
	char *name;
	int group;
	Mix_Chunk *sound;
} sound_t;

extern bool_t isSoundInicialized();
extern void initSound();
extern void addSound(char *file, char *name, int group);
extern void playSound(char *name, int group);
extern void setSoundActive(bool_t n);
extern bool_t isSoundActive();
extern void quitSound();

#endif

#endif