-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathmain.py
40 lines (34 loc) · 816 Bytes
/
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
# import logging
# import time
# import pyvban
# logging.basicConfig(level=logging.DEBUG)
# pyvban.utils.device_list()
# receiver = pyvban.utils.VBAN_Receiver(
# sender_ip="127.0.0.1",
# stream_name="Stream1",
# port=6980,
# device_index=11
# )
# receiver.run()
# sender = pyvban.utils.VBAN_Sender(
# receiver_ip="127.0.0.1",
# receiver_port=6980,
# stream_name="Stream1",
# sample_rate=48000,
# channels=2,
# device_index=1
# )
# sender.run()
# send_text = pyvban.utils.VBAN_SendText(
# receiver_ip="127.0.0.1",
# receiver_port=6980,
# stream_name="Command1"
# )
# state = False
# while True:
# state = not state
# if state:
# send_text.send("Strip[5].Mute = 0")
# else:
# send_text.send("Strip[5].Mute = 1")
# time.sleep(1)