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",
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)