-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsound.c
47 lines (41 loc) · 1.21 KB
/
sound.c
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
46
47
/*################### PLAY SOUNDS IN GAME #################################*/
void play_menu_sound()
{
int panning = 100;
int pitch = 1000;
int volume = 100;
//play the sample with looping
play_sample(menu_sound, volume, panning, pitch, TRUE);
}
void play_select_sound()
{
int panning = 100;
int pitch = 1000;
int volume = 200;
//play the sample without looping
play_sample(select_sound, volume, panning, pitch, FALSE);
}
void play_whistle_sound()
{
int panning = 100;
int pitch = 1000;
int volume = 400;
//play the sample without looping
play_sample(whistle_sound, volume, panning, pitch, FALSE);
}
void play_player1_return_sound()
{
int panning = 100;
int pitch = 1000;
int volume = 800;
//play the sample without looping
play_sample(returnL_sound, volume, panning, pitch, FALSE);
}
void play_player2_return_sound()
{
int panning = 100;
int pitch = 1000;
int volume = 800;
//play the sample without looping
play_sample(returnR_sound, volume, panning, pitch, FALSE);
}