From b665f3747f7baa4fe6d6fdf23db084fbb24faa7f Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 9 Jun 2025 07:45:04 +0200 Subject: [PATCH] add jack config --- bin/streaming/telecaster.py | 4 ++-- etc/telecaster/telecaster.yml | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/streaming/telecaster.py b/bin/streaming/telecaster.py index ac574bf..b44b9c8 100755 --- a/bin/streaming/telecaster.py +++ b/bin/streaming/telecaster.py @@ -47,7 +47,7 @@ BOOT_TIME_DELAY = 1 DEFAULT_CONFIG_FILE = "/etc/telecaster/telecaster.yml" JACK_CONFIG = {"engine": "jackd", - "options": "-R -P50 -dalsa -r48000 -p1024 -n3 -Chw:3 -Phw:3", + "options": "-R -P50 -dalsa -r48000 -p{buffer} -n3 -Chw:{card} -Phw:{card}", "tools": ["qjackctl", "catia", "konsole"], "post_commands": ["jack_connect system:capture_1 webm_streaming_0_audio:in_jackaudiosrc0_1", @@ -136,7 +136,7 @@ class TeleCaster(Thread): subprocess.call(command, shell=True) def audio_engine_start(self): - command = self.audio_config["engine"] + " " + self.audio_config["options"] + command = self.audio_config["engine"] + " " + self.audio_config["options"].format(**self.conf["audio"]["jack"]) thread = TeleCasterThreadedCommand(command) thread.start() time.sleep(BOOT_TIME_DELAY) diff --git a/etc/telecaster/telecaster.yml b/etc/telecaster/telecaster.yml index 68f2a3f..08d2e55 100644 --- a/etc/telecaster/telecaster.yml +++ b/etc/telecaster/telecaster.yml @@ -78,6 +78,9 @@ telecaster: secret: 4egZs1dSM37XVY8zXa016Yueku2fleXF2bx8k25V4 tags: bla bla audio: + jack: + card: U192k + buffer: 1024 gstreamer: audio_source: jackaudiosrc audio_options: connect=2 -- 2.39.5