-
Notifications
You must be signed in to change notification settings - Fork 0
/
sound.h
39 lines (32 loc) · 1.01 KB
/
sound.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
/*************************************************************************
*
* sound.h
*
* (c) 2021 J. G. Silva (django) <[email protected]>
*
* "Snake game written in C - animations, retro menu, smart snake
* enemies, sound effects."
*
* last modification: 2021-01-07
*
************************************************************************/
#ifndef SOUND_H
#define SOUND_H
#define SOUND
#define FALSE 0
#define TRUE 1
#define AUDIO_INTRO "audio/intro.mp3"
#define AUDIO_MENU_MAIN "audio/mainmenu.mp3"
#define AUDIO_DJANGO "audio/django.mp3"
#define AUDIO_TEFX_ADDCHAR "audio/addchar.mp3"
#define AUDIO_TEFX_SLIDING "audio/sliding.mp3"
#define AUDIO_TEFX_SLIDINGTOC "audio/slidingtoc.mp3"
#define AUDIO_FOOD1 "audio/food1.mp3"
#define AUDIO_MAP1 "audio/map1.mp3"
extern long int audio_mainchannel;
int audio_initialize();
void audio_terminate();
int audio_play(unsigned long int audiochannel, char *filename, short repeat);
void audio_stop();
void audio_resume();
#endif /* SOUND_H */