Compare commits

..

No commits in common. "bb10786b94d55588190898b77fe9c861e7f399b8" and "e6d90925620164c215a0830773d22071e92c74d2" have entirely different histories.

2 changed files with 1 additions and 10 deletions

View File

@ -22,7 +22,6 @@ class Audio(ILayer):
super().__init__(duckypad)
for attr, val in kwargs.items():
setattr(self, attr, val)
self.vm.observer.add(self.on_mdirty)
self.reset_states()
@ -43,12 +42,6 @@ class Audio(ILayer):
for button in Buttons:
self.vm.button[button].stateonly = getattr(AudioState, button.name)
def on_mdirty(self):
"""Handle Voicemeeter dirty event"""
self.logger.debug('Voicemeeter state changed (mdirty event)')
for button in Buttons:
setattr(self.state, button.name, self.vm.button[button].stateonly)
def mute_mics(self):
self.state.mute_mics = not self.state.mute_mics
if self.state.mute_mics:
@ -80,13 +73,11 @@ class Audio(ILayer):
self.vm.bus[VMBuses.iris_mic].mute = True
self.vm.strip[VMStrips.onyx_pc].gain = -3
self.vm.strip[VMStrips.iris_pc].gain = -3
self.vm.strip[VMStrips.comms].gain = -6
self.vm.strip[VMStrips.pretzel].gain = -3
self.logger.info('Only Stream Enabled')
else:
self.vm.strip[VMStrips.onyx_pc].gain = 0
self.vm.strip[VMStrips.iris_pc].gain = 0
self.vm.strip[VMStrips.comms].gain = 0
self.vm.strip[VMStrips.pretzel].gain = 0
self.vm.bus[VMBuses.onyx_mic].mute = False
self.vm.bus[VMBuses.iris_mic].mute = False

View File

@ -58,7 +58,7 @@ def run():
xair_config = configuration.get('xair')
with (
voicemeeterlib.api('potato', mdirty=True) as vm,
voicemeeterlib.api('potato') as vm,
xair_api.connect('MR18', **xair_config) as mixer,
duckypad_twitch.connect(vm=vm, mixer=mixer) as duckypad,
):