-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaudio.h
45 lines (35 loc) · 1.02 KB
/
audio.h
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
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef _AUDIO_H
#define _AUDIO_H
/// AUDIO
#ifdef USE_AUDIO
#include <SDL_mixer.h>
typedef Mix_Chunk Sound;
#else
#define Sound void
#endif
/// les differents sons utilisables
extern Sound *sound_pop;
extern Sound *sound_bam1;
extern Sound *sound_fff;
extern Sound *sound_slide;
#define NB_YAHOOHOO1 4
#define NB_YAHOOHOO2 2
#define NB_YAHOOHOO3 1
extern Sound *sound_yahoohoo1[NB_YAHOOHOO1];
extern Sound *sound_yahoohoo2[NB_YAHOOHOO2];
extern Sound *sound_yahoohoo3[NB_YAHOOHOO3];
extern Sound *sound_splash[8];
extern Sound *sound_bim[2];
void audio_init (void);
void audio_music_start (int num);
void audio_sound_play (Sound * s);
void audio_close (void);
/// volume compris entre 0 et 100;
void audio_music_set_volume (int vol);
/// volume compris entre 0 et 100;
void audio_set_volume (int vol);
void audio_set_music_on_off (int on);
void audio_set_sound_on_off (int on);
#define NB_MUSIC_THEME 2
void audio_music_switch_theme(int theme_number);
#endif