rename the entry point

vban instructions are only outbound for Audio.toggle_workstation_to_onyx()

upd readme
This commit is contained in:
2025-03-12 17:13:34 +00:00
parent 917352772f
commit 8fd35408d5
5 changed files with 12 additions and 12 deletions

View File

@@ -136,12 +136,12 @@ class Audio(ILayer):
self.state.ws_to_onyx = not self.state.ws_to_onyx
onyx_conn = configuration.get('vban_onyx')
if self.state.ws_to_onyx:
with vban_cmd.api('potato', **onyx_conn) as vban:
with vban_cmd.api('potato', outbound=True, **onyx_conn) as vban:
vban.vban.instream[0].on = True
self.vm.strip[5].gain = -6
self.vm.vban.outstream[2].on = True
else:
with vban_cmd.api('potato', **onyx_conn) as vban:
with vban_cmd.api('potato', outbound=True, **onyx_conn) as vban:
vban.vban.instream[0].on = False
self.vm.strip[5].gain = 0
self.vm.vban.outstream[2].on = False