]> git.parisson.com Git - telecaster-server.git/commitdiff
fix audio engine startup
authorGuillaume Pellerin <pellerin@parisson.com>
Sun, 8 Jun 2025 23:15:51 +0000 (01:15 +0200)
committerGuillaume Pellerin <pellerin@parisson.com>
Sun, 8 Jun 2025 23:15:51 +0000 (01:15 +0200)
bin/streaming/telecaster.py

index 877d645befeaa5f492c2f7e047ef75d4b1d10349..717bd911ce5ed2e6b8ec100f4d7d9151d21007d5 100755 (executable)
@@ -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"]: