{Audio}.solo_onyx() and {Audio}.solo_iris() are now patching methods.

This commit is contained in:
Onyx and Iris 2026-01-02 10:12:21 +00:00
parent 3158ed87c7
commit 4fda9ddb4d
3 changed files with 20 additions and 8 deletions

View File

@ -161,11 +161,23 @@ class Audio(ILayer):
self.mixer.headamp[XAirStrips.iris_mic].phantom = False
self.logger.info('Iris Mic Unstaged and Phantom Power Disabled')
def solo_onyx(self):
"""placeholder method"""
def patch_onyx(self):
self.state.patch_onyx = not self.state.patch_onyx
if self.state.patch_onyx:
self.vm.patch.asio[0].set(11)
self.logger.info('Onyx mic has been patched')
else:
self.vm.patch.asio[0].set(0)
self.logger.info('Onyx mic has been unpatched')
def solo_iris(self):
"""placeholder method"""
def patch_iris(self):
self.state.patch_iris = not self.state.patch_iris
if self.state.patch_iris:
self.vm.patch.asio[2].set(12)
self.logger.info('Iris mic has been patched')
else:
self.vm.patch.asio[2].set(0)
self.logger.info('Iris mic has been unpatched')
### Workstation and TV Audio Routing via VBAN ###

View File

@ -22,8 +22,8 @@ def register_hotkeys(duckypad):
keyboard.add_hotkey('F18', duckypad.audio.stage_iris_mic)
keyboard.add_hotkey('shift+F17', duckypad.audio.unstage_onyx_mic)
keyboard.add_hotkey('shift+F18', duckypad.audio.unstage_iris_mic)
keyboard.add_hotkey('F19', duckypad.audio.solo_onyx)
keyboard.add_hotkey('F20', duckypad.audio.solo_iris)
keyboard.add_hotkey('F19', duckypad.audio.patch_onyx)
keyboard.add_hotkey('F20', duckypad.audio.patch_iris)
keyboard.add_hotkey('F21', duckypad.audio.toggle_workstation_to_onyx)
keyboard.add_hotkey('F22', duckypad.audio.toggle_workstation_to_iris)
keyboard.add_hotkey('F23', duckypad.audio.toggle_tv_audio_to_onyx)

View File

@ -13,8 +13,8 @@ class AudioState:
only_discord: bool = False
only_stream: bool = True
sound_test: bool = False
solo_onyx: bool = False
solo_iris: bool = False
patch_onyx: bool = True
patch_iris: bool = True
ws_to_onyx: bool = False
ws_to_iris: bool = False