diff --git a/duckypad_twitch/audio.py b/duckypad_twitch/audio.py index 7e7fb72..289f925 100644 --- a/duckypad_twitch/audio.py +++ b/duckypad_twitch/audio.py @@ -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 ### diff --git a/duckypad_twitch/macros/duckypad.py b/duckypad_twitch/macros/duckypad.py index deaa300..6d53bd9 100644 --- a/duckypad_twitch/macros/duckypad.py +++ b/duckypad_twitch/macros/duckypad.py @@ -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) diff --git a/duckypad_twitch/states.py b/duckypad_twitch/states.py index 7b20332..70207b2 100644 --- a/duckypad_twitch/states.py +++ b/duckypad_twitch/states.py @@ -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