def Mic(client, Action): client.call(requests.ToggleMute("Mic/Aux"))
def ToggleSourceMute(self, SourceName): try: self.ws.call(requests.ToggleMute(SourceName)) except Exception as e: print(e)
def command_d(self): self.ws.call(requests.ToggleMute(self.aud_sources.getDesktop1())) self.load_volume_d(self.aud_sources.getDesktop1())
def command_m(self): self.ws.call(requests.ToggleMute(self.aud_sources.getMic1())) self.load_volume_m(self.aud_sources.getMic1())
def ToggleMute(self, *args): return self.ws.call(requests.ToggleMute(args[0]))
def CambiarVolumen(self, Fuente): if self.OBSConectado: print("Cambiando estado Volumen {}".format(Fuente)) self.ConeccionOBS.call(requests.ToggleMute(Fuente)) else: print("No se encontro OBS")
def Sources_ToggleMute(self, SourceName="", *args, **kwargs): #Not tested try: self.ws.call(requests.ToggleMute(SourceName)) PrintWithTime(f"Toggled mute of source {SourceName}") except Exception as e: PrintWithTime(f"Couldn't toggle mute of source {SourceName}. Error : {e}")