From b8311580a2036f4ff7ecbe75b10c8be2011e9849 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 9 Jun 2025 01:15:51 +0200 Subject: [PATCH] fix audio engine startup --- bin/streaming/telecaster.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) 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"]: -- 2.39.5