summaryrefslogtreecommitdiff
path: root/src/audio/sound.h
blob: a5d69d47e4d835c6bbc52f4327d8a4a24068104f (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

#ifndef SOUND_H
#    define SOUND_H
#    ifndef NO_SOUND
#        include <SDL_mixer.h>
#        include "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