blob: ec1beb1e1de9c34695139c16a44aa69d90a2b92f (
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
32
33
|
#ifndef SOUND_H
#define SOUND_H
#ifndef NO_SOUND
#include <SDL_mixer.h>
#include "base/main.h"
#define SOUND_GROUP_BASE "base"
#define SOUND_GROUP_USER "user"
/*
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, char *group);
extern void playSound(char *name, char *group);
extern void setSoundActive(bool_t n);
extern bool_t isSoundActive();
extern void quitSound();
#endif
#endif
|