diff --git a/duckypad_twitch/audio.py b/duckypad_twitch/audio.py index e6c4ae0..da9a4c7 100644 --- a/duckypad_twitch/audio.py +++ b/duckypad_twitch/audio.py @@ -179,6 +179,15 @@ class Audio(ILayer): self.vm.patch.asio[2].set(0) self.logger.info('Iris mic has been unpatched') + def mute_game_pcs(self): + self.state.mute_game_pcs = not self.state.mute_game_pcs + if self.state.mute_game_pcs: + self.mixer.strip[XAirStrips.game_pcs].send[XAirBuses.stream_mix].level = -90 + self.logger.info('Game PCs Muted') + else: + self.mixer.strip[XAirStrips.game_pcs].send[XAirBuses.stream_mix].level = -24 + self.logger.info('Game PCs Unmuted') + ### Workstation and TV Audio Routing via VBAN ### def _fade_mixer(self, target_fader, fade_in=True): diff --git a/duckypad_twitch/macros/duckypad.py b/duckypad_twitch/macros/duckypad.py index 6d53bd9..53981c9 100644 --- a/duckypad_twitch/macros/duckypad.py +++ b/duckypad_twitch/macros/duckypad.py @@ -24,10 +24,11 @@ def register_hotkeys(duckypad): keyboard.add_hotkey('shift+F18', duckypad.audio.unstage_iris_mic) 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) - keyboard.add_hotkey('F24', duckypad.audio.toggle_tv_audio_to_iris) + keyboard.add_hotkey('F21', duckypad.audio.mute_game_pcs) + keyboard.add_hotkey('alt+F13', duckypad.audio.toggle_workstation_to_onyx) + keyboard.add_hotkey('alt+F14', duckypad.audio.toggle_workstation_to_iris) + keyboard.add_hotkey('alt+F15', duckypad.audio.toggle_tv_audio_to_onyx) + keyboard.add_hotkey('alt+F16', duckypad.audio.toggle_tv_audio_to_iris) def scene_hotkeys(): keyboard.add_hotkey('ctrl+F13', duckypad.scene.start) diff --git a/duckypad_twitch/states.py b/duckypad_twitch/states.py index 70207b2..9cbe75c 100644 --- a/duckypad_twitch/states.py +++ b/duckypad_twitch/states.py @@ -15,6 +15,7 @@ class AudioState: sound_test: bool = False patch_onyx: bool = True patch_iris: bool = True + mute_game_pcs: bool = False ws_to_onyx: bool = False ws_to_iris: bool = False