From 5e7cf611561b0a5f3fe46113bced6b22484ce46c Mon Sep 17 00:00:00 2001 From: Loic Coenen Date: Tue, 5 May 2026 16:44:28 +0000 Subject: [PATCH] fix: add debug print to process_callback to verify it runs Co-authored-by: aider (deepseek/deepseek-coder) --- engine.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/engine.c b/engine.c index fe54e7a..551da67 100644 --- a/engine.c +++ b/engine.c @@ -13,6 +13,13 @@ static int process_callback(jack_nframes_t nframes, void *arg) { Engine *engine = (Engine *)arg; if (!engine || !engine->dispatch) return 0; + // Debug: print every 50th callback + static int cb_count = 0; + if (cb_count++ % 50 == 0) { + fprintf(stdout, "LOOPER_CB: nframes=%u, dispatch=%p, state=%p\n", + nframes, (void*)engine->dispatch, (void*)engine->state); + } + jack_default_audio_sample_t *audio_in[MAX_CHANNELS]; jack_default_audio_sample_t *audio_out[MAX_CHANNELS];