]> git.parisson.com Git - telecaster-server.git/commitdiff
more jack options
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Mon, 9 Jun 2025 06:22:49 +0000 (08:22 +0200)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Mon, 9 Jun 2025 06:22:49 +0000 (08:22 +0200)
bin/streaming/telecaster.py
etc/telecaster/telecaster.yml

index b44b9c8a363e92b4b39860df8df63848fa309e0d..183222c9c4ccc743c5123c7bde498135f121edb2 100755 (executable)
@@ -47,9 +47,9 @@ BOOT_TIME_DELAY = 1
 DEFAULT_CONFIG_FILE = "/etc/telecaster/telecaster.yml"
 
 JACK_CONFIG = {"engine": "jackd",
-               "options": "-R -P50 -dalsa -r48000 -p{buffer} -n3 -Chw:{card} -Phw:{card}",
+               "options": "-R -P{priority} -dalsa -r{samplerate} -p{buffer} -n3 -Chw:{card} -Phw:{card}",
                "tools": ["qjackctl", "catia", "konsole"],
-               "post_commands":
+               "connect":
                     ["jack_connect system:capture_1 webm_streaming_0_audio:in_jackaudiosrc0_1",
                      "jack_connect system:capture_2 webm_streaming_0_audio:in_jackaudiosrc0_2",
                      "jack_connect system:capture_1 mp3_streaming_audio:in_jackaudiosrc0_1",
@@ -60,7 +60,7 @@ JACK_CONFIG = {"engine": "jackd",
 PIPEWIRE_CONFIG = {"engine": "pipewire",
                "options": "",
                "tools": ["qpwgraph", "konsole"],
-               "post_commands":""
+               "connect":""
                }
 
 
@@ -216,9 +216,8 @@ class TeleCaster(Thread):
         time.sleep(BOOT_TIME_DELAY)
         self.deefuzzer_start(deefuzzer_global_conf, self.deefuzzer_audio_conf_file)
 
-
-    def post_commands(self):
-        for post_command in self.audio_config["post_commands"]:
+    def connect(self):
+        for post_command in self.audio_config["connect"]:
             command = TeleCasterCommand(post_command)
             command.start()
 
@@ -227,7 +226,7 @@ class TeleCaster(Thread):
         self.audio_tools_start()
         self.video_start()
         self.audio_start()
-        self.post_commands()
+        self.connect()
 
 
 
index 08d2e55869e662d62109ad1b7e467bc0ef99e443..338112f869c99ea0c875c1f1f4266d0c57f9b276 100644 (file)
@@ -80,7 +80,9 @@ telecaster:
   audio:
     jack:
       card: U192k
+      priority: 50
       buffer: 1024
+      samplerate: 48000
     gstreamer:
       audio_source: jackaudiosrc
       audio_options: connect=2