From 639f69f7a65def144c4f0cc21a66275f1b2dfaff Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 9 Jun 2025 08:22:49 +0200 Subject: [PATCH] more jack options --- bin/streaming/telecaster.py | 13 ++++++------- etc/telecaster/telecaster.yml | 2 ++ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/bin/streaming/telecaster.py b/bin/streaming/telecaster.py index b44b9c8..183222c 100755 --- a/bin/streaming/telecaster.py +++ b/bin/streaming/telecaster.py @@ -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() diff --git a/etc/telecaster/telecaster.yml b/etc/telecaster/telecaster.yml index 08d2e55..338112f 100644 --- a/etc/telecaster/telecaster.yml +++ b/etc/telecaster/telecaster.yml @@ -80,7 +80,9 @@ telecaster: audio: jack: card: U192k + priority: 50 buffer: 1024 + samplerate: 48000 gstreamer: audio_source: jackaudiosrc audio_options: connect=2 -- 2.39.5