From e2f81fd30917ee6f108e70410471d73ec7bdbc3a Mon Sep 17 00:00:00 2001 From: Shawn Date: Sat, 13 Jun 2026 22:27:22 -0400 Subject: [PATCH] Fix NAM engine block_size at boot to match audio profile period - FastNAMHost now initialized with block_size from audio config's latency profile (e.g. 512 for stable, 256 for standard) - Prevents sample-alignment mismatch between JACK period and NAM engine internal buffer size at boot --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 9e8c743..722c888 100644 --- a/main.py +++ b/main.py @@ -133,7 +133,8 @@ class PedalApp: logger.info("JACK disabled in config — skipping audio server start") # ── 2. DSP pipeline (NAM + IR + FX chain) ──────────── - self.nam_host = FastNAMHost() + block_size = self.audio_config.latency_profile["period"] + self.nam_host = FastNAMHost(block_size=block_size) self.ir_loader = IRLoader() self.pipeline = AudioPipeline(nam_host=self.nam_host, ir_loader=self.ir_loader) self.nam_host.warm_up()