summaryrefslogtreecommitdiff
path: root/include/sound.h
blob: 965c97731941ef2622f67ead424df8a5d0e99176 (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

#ifndef SOUND_H

#define SOUND_H

#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 quitSound();

#endif