-
Notifications
You must be signed in to change notification settings - Fork 0
/
Sounds.py
58 lines (35 loc) · 1.16 KB
/
Sounds.py
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
48
49
50
51
52
53
54
55
56
57
58
from pygame import mixer
mixer.init()
def collision_warning_sound(sound):
mixer.music.load('data\\sounds\\warning_' + str(sound) + '.wav')
mixer.music.play()
def beep():
mixer.music.load('data\\sounds\\emawarning.wav')
mixer.music.play()
def pdc_front():
mixer.music.load('data\\sounds\\beep_front.wav')
mixer.music.play()
def pdc_rear():
mixer.music.load('data\\sounds\\beep_rear.wav')
mixer.music.play()
def beep_intense():
mixer.music.load('data\\sounds\\emawarning_intense.wav')
mixer.music.play()
def yield_sound():
mixer.music.load('data\\sounds\\yield_warn.wav')
mixer.music.play()
def playsound_indicator_on():
mixer.music.load('data\\sounds\\indicatorOn.wav')
mixer.music.play()
def playsound_indicator_off():
mixer.music.load('data\\sounds\\indicatorOff.wav')
mixer.music.play()
def play_bus_door_open():
mixer.music.load('data\\sounds\\door_open.wav')
mixer.music.play()
def play_bus_door_close():
mixer.music.load('data\\sounds\\door_close.wav')
mixer.music.play()
def new_route():
mixer.music.load('data\\sounds\\bus_radio\\bl_new_route.wav')
mixer.music.play()