forked from Paradoxis/Windows-Sound-Manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
55 lines (45 loc) · 1.22 KB
/
main.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
from datetime import date
from sound import Sound
print("")
print("Windows Sound Manager (Python 3)")
print("Copyright (c) 2014 - %d | Paradoxis" % date.today().year)
print("")
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")
option = input("> ")
print("")
if (option == "1"):
Sound.mute()
continue
if (option == "2"):
Sound.volume_up()
continue
if (option == "3"):
Sound.volume_down()
continue
if (option == "4"):
Sound.volume_min()
continue
if (option == "5"):
Sound.volume_max()
continue
if (option == "6"):
volume = int(input("Volume (0 - 100): "))
Sound.volume_set(volume)
continue
if (option == "7"):
print("Current volume | %s" % str(Sound.current_volume()))
print("Sound muted | %s" % str(Sound.is_muted()))
print("----------------------")
print("")
continue
if (option == "8"):
exit(0)