mirror of
https://github.com/onyx-and-iris/duckypad-twitch.git
synced 2026-01-08 20:57:48 +00:00
add more buttons for syncing
This commit is contained in:
parent
26e68900aa
commit
e9126f0f59
@ -70,6 +70,25 @@ class Audio(ILayer):
|
||||
self.logger.info('Only Stream Enabled')
|
||||
else:
|
||||
self.logger.info('Only Stream Disabled')
|
||||
case 'sound_test':
|
||||
if current_value:
|
||||
self.logger.info('Sound Test Enabled')
|
||||
else:
|
||||
self.logger.info('Sound Test Disabled')
|
||||
case 'patch_onyx':
|
||||
if current_value:
|
||||
self.logger.info('Onyx mic has been patched')
|
||||
else:
|
||||
self.logger.info('Onyx mic has been unpatched')
|
||||
if current_value:
|
||||
self.logger.info('Iris mic has been patched')
|
||||
else:
|
||||
self.logger.info('Iris mic has been unpatched')
|
||||
case 'mute_game_pcs':
|
||||
if current_value:
|
||||
self.logger.info('Game PCs Muted')
|
||||
else:
|
||||
self.logger.info('Game PCs Unmuted')
|
||||
|
||||
setattr(self.state, button.name, current_value)
|
||||
|
||||
@ -162,6 +181,7 @@ class Audio(ILayer):
|
||||
self.vm.strip[VMStrips.onyx_mic].apply({'A1': False, 'B1': True, 'B3': True, 'mute': True})
|
||||
self.vm.strip[VMStrips.iris_mic].apply({'A1': False, 'B2': True, 'B3': True, 'mute': True})
|
||||
self.logger.info('Sound Test Disabled')
|
||||
self.vm.button[Buttons.sound_test].stateonly = self.state.sound_test
|
||||
|
||||
@ensure_mixer_fadeout
|
||||
def stage_onyx_mic(self):
|
||||
@ -205,6 +225,7 @@ class Audio(ILayer):
|
||||
else:
|
||||
self.vm.patch.asio[0].set(0)
|
||||
self.logger.info('Onyx mic has been unpatched')
|
||||
self.vm.button[Buttons.patch_onyx].stateonly = self.state.patch_onyx
|
||||
|
||||
def patch_iris(self):
|
||||
self.state.patch_iris = not self.state.patch_iris
|
||||
@ -214,6 +235,7 @@ class Audio(ILayer):
|
||||
else:
|
||||
self.vm.patch.asio[2].set(0)
|
||||
self.logger.info('Iris mic has been unpatched')
|
||||
self.vm.button[Buttons.patch_iris].stateonly = self.state.patch_iris
|
||||
|
||||
def mute_game_pcs(self):
|
||||
self.state.mute_game_pcs = not self.state.mute_game_pcs
|
||||
@ -223,6 +245,7 @@ class Audio(ILayer):
|
||||
else:
|
||||
self.mixer.strip[XAirStrips.game_pcs].send[XAirBuses.stream_mix].level = -24
|
||||
self.logger.info('Game PCs Unmuted')
|
||||
self.vm.button[Buttons.mute_game_pcs].stateonly = self.state.mute_game_pcs
|
||||
|
||||
### Workstation and TV Audio Routing via VBAN ###
|
||||
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
from enum import IntEnum
|
||||
|
||||
Buttons = IntEnum('Buttons', 'mute_mics only_discord only_stream', start=0)
|
||||
Buttons = IntEnum(
|
||||
'Buttons', 'mute_mics only_discord only_stream sound_test patch_onyx patch_iris mute_game_pcs', start=0
|
||||
)
|
||||
|
||||
# Voicemeeter Channels
|
||||
VMStrips = IntEnum('Strips', 'onyx_mic iris_mic onyx_pc iris_pc st_input_5 system comms pretzel', start=0)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user