remove streamlabs code, only communicate with OBS

added methods to Audio class for:
stage gaining microphones
toggling audio to/from ws
toggling audio to/from tv
This commit is contained in:
Onyx and Iris
2026-01-01 23:00:27 +00:00
parent d07581593f
commit 227a973949
9 changed files with 232 additions and 284 deletions

View File

@@ -16,33 +16,28 @@ def register_hotkeys(duckypad):
keyboard.add_hotkey('F14', duckypad.audio.only_discord)
keyboard.add_hotkey('F15', duckypad.audio.only_stream)
keyboard.add_hotkey('F16', duckypad.audio.sound_test)
keyboard.add_hotkey('F17', duckypad.audio.solo_onyx)
keyboard.add_hotkey('F18', duckypad.audio.solo_iris)
keyboard.add_hotkey('F19', duckypad.audio.toggle_workstation_to_onyx)
keyboard.add_hotkey('F17', duckypad.audio.stage_onyx_mic)
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('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)
def scene_hotkeys():
keyboard.add_hotkey('ctrl+F13', duckypad.scene.onyx_only)
keyboard.add_hotkey('ctrl+F14', duckypad.scene.iris_only)
keyboard.add_hotkey('ctrl+F15', duckypad.scene.dual_scene)
keyboard.add_hotkey('ctrl+F16', duckypad.scene.onyx_big)
keyboard.add_hotkey('ctrl+F17', duckypad.scene.iris_big)
keyboard.add_hotkey('ctrl+F18', duckypad.scene.start)
keyboard.add_hotkey('ctrl+F19', duckypad.scene.brb)
keyboard.add_hotkey('ctrl+F20', duckypad.scene.end)
keyboard.add_hotkey('ctrl+F13', duckypad.scene.start)
keyboard.add_hotkey('ctrl+F14', duckypad.scene.dual_stream)
keyboard.add_hotkey('ctrl+F15', duckypad.scene.brb)
keyboard.add_hotkey('ctrl+F16', duckypad.scene.end)
keyboard.add_hotkey('ctrl+F17', duckypad.scene.onyx_solo)
keyboard.add_hotkey('ctrl+F18', duckypad.scene.iris_solo)
def obsws_hotkeys():
keyboard.add_hotkey('ctrl+alt+F13', duckypad.obsws.start)
keyboard.add_hotkey('ctrl+alt+F14', duckypad.obsws.brb)
keyboard.add_hotkey('ctrl+alt+F15', duckypad.obsws.end)
keyboard.add_hotkey('ctrl+alt+F16', duckypad.obsws.live)
keyboard.add_hotkey('ctrl+alt+F17', duckypad.obsws.toggle_mute_mic)
keyboard.add_hotkey('ctrl+alt+F18', duckypad.obsws.toggle_stream)
def streamlabs_controller_hotkeys():
keyboard.add_hotkey('ctrl+F22', duckypad.streamlabs.begin_stream)
keyboard.add_hotkey('ctrl+F23', duckypad.streamlabs.end_stream)
keyboard.add_hotkey('ctrl+alt+F23', duckypad.streamlabs.launch, args=(10,))
keyboard.add_hotkey('ctrl+alt+F24', duckypad.streamlabs.shutdown)
keyboard.add_hotkey('ctrl+alt+F13', duckypad.obsws.start_stream)
keyboard.add_hotkey('ctrl+alt+F14', duckypad.obsws.stop_stream)
def duckypad_hotkeys():
keyboard.add_hotkey('ctrl+F21', duckypad.reset)
@@ -51,7 +46,6 @@ def register_hotkeys(duckypad):
audio_hotkeys,
scene_hotkeys,
obsws_hotkeys,
streamlabs_controller_hotkeys,
duckypad_hotkeys,
):
step()
@@ -69,5 +63,5 @@ def run():
register_hotkeys(duckypad)
print('press ctrl+m to quit')
keyboard.wait('ctrl+m')
print('press ctrl+shift+F24 to quit')
keyboard.wait('ctrl+shift+F24')