-
Notifications
You must be signed in to change notification settings - Fork 0
/
sound_controler.py
47 lines (39 loc) · 1.03 KB
/
sound_controler.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
from datetime import date
from sound import Sound
def sound_control():
while True:
'''
print("Choose an option:")
print("1] Mute / Unmute volume")
print("2] Increase volume")
print("3] Decrease volume")
print("4] Set volume to 0")
print("5] Set volume to 100")
print("6] Set volume to ...")
print("7] Print sound settings")
print("8] Quit")
print("")
'''
option = input("> ")
'''
if option == "1":
Sound.mute()
continue
elif option == "2":
Sound.volume_up()
continue
elif option == "3":
Sound.volume_down()
continue
elif option == "4":
Sound.volume_min()
continue
elif option == "5":
Sound.volume_max()
continue
'''
# elif option == "6":
volume = int(input("Volume (0 - 100): "))
Sound.volume_set(volume)
continue
sound_control()