mirror of
https://github.com/onyx-and-iris/duckypad-twitch.git
synced 2026-01-09 13:07:47 +00:00
add {Audio}.mute_game_pcs()
update audio routing binds (ws, tv)
This commit is contained in:
parent
62297835d9
commit
bbdd64edb4
@ -179,6 +179,15 @@ class Audio(ILayer):
|
|||||||
self.vm.patch.asio[2].set(0)
|
self.vm.patch.asio[2].set(0)
|
||||||
self.logger.info('Iris mic has been unpatched')
|
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 ###
|
### Workstation and TV Audio Routing via VBAN ###
|
||||||
|
|
||||||
def _fade_mixer(self, target_fader, fade_in=True):
|
def _fade_mixer(self, target_fader, fade_in=True):
|
||||||
|
|||||||
@ -24,10 +24,11 @@ def register_hotkeys(duckypad):
|
|||||||
keyboard.add_hotkey('shift+F18', duckypad.audio.unstage_iris_mic)
|
keyboard.add_hotkey('shift+F18', duckypad.audio.unstage_iris_mic)
|
||||||
keyboard.add_hotkey('F19', duckypad.audio.patch_onyx)
|
keyboard.add_hotkey('F19', duckypad.audio.patch_onyx)
|
||||||
keyboard.add_hotkey('F20', duckypad.audio.patch_iris)
|
keyboard.add_hotkey('F20', duckypad.audio.patch_iris)
|
||||||
keyboard.add_hotkey('F21', duckypad.audio.toggle_workstation_to_onyx)
|
keyboard.add_hotkey('F21', duckypad.audio.mute_game_pcs)
|
||||||
keyboard.add_hotkey('F22', duckypad.audio.toggle_workstation_to_iris)
|
keyboard.add_hotkey('alt+F13', duckypad.audio.toggle_workstation_to_onyx)
|
||||||
keyboard.add_hotkey('F23', duckypad.audio.toggle_tv_audio_to_onyx)
|
keyboard.add_hotkey('alt+F14', duckypad.audio.toggle_workstation_to_iris)
|
||||||
keyboard.add_hotkey('F24', duckypad.audio.toggle_tv_audio_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():
|
def scene_hotkeys():
|
||||||
keyboard.add_hotkey('ctrl+F13', duckypad.scene.start)
|
keyboard.add_hotkey('ctrl+F13', duckypad.scene.start)
|
||||||
|
|||||||
@ -15,6 +15,7 @@ class AudioState:
|
|||||||
sound_test: bool = False
|
sound_test: bool = False
|
||||||
patch_onyx: bool = True
|
patch_onyx: bool = True
|
||||||
patch_iris: bool = True
|
patch_iris: bool = True
|
||||||
|
mute_game_pcs: bool = False
|
||||||
|
|
||||||
ws_to_onyx: bool = False
|
ws_to_onyx: bool = False
|
||||||
ws_to_iris: bool = False
|
ws_to_iris: bool = False
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user