From: Guillaume Pellerin Date: Sun, 8 Jun 2025 23:15:51 +0000 (+0200) Subject: fix audio engine startup X-Git-Tag: 4.1.0~8 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=b8311580a2036f4ff7ecbe75b10c8be2011e9849;p=telecaster-server.git fix audio engine startup --- diff --git a/bin/streaming/telecaster.py b/bin/streaming/telecaster.py index 877d645..717bd91 100755 --- a/bin/streaming/telecaster.py +++ b/bin/streaming/telecaster.py @@ -107,9 +107,9 @@ class TeleCaster(Thread): # print(self.conf) audio_source = self.conf["audio"]["gstreamer"]["audio_source"] if "pipewire" in audio_source: - audio_config = PIPEWIRE_CONFIG + self.audio_config = PIPEWIRE_CONFIG elif "jack" in audio_source: - audio_config = JACK_CONFIG + self.audio_config = JACK_CONFIG def write_conf(self, conf_dict, path): filename, ext = os.path.splitext(path) @@ -128,13 +128,8 @@ class TeleCaster(Thread): def audio_engine_start(self): command = self.audio_config["engine"] + " " + self.audio_config["options"] - thread = TeleCasterCommand(command) - Thread.start() - - def audio_engine_start(self): - command = self.audio_config["engine"] + " " + self.audio_config["options"] - thread = TeleCasterCommand(command) - Thread.start() + thread = TeleCasterThreadedCommand(command) + thread.start() def audio_tools_start(self): for tool in self.audio_config["tools"]: