From e2840a01a7b72310d66069bcb7fb653eb4e9b74e Mon Sep 17 00:00:00 2001 From: Loic Coenen Date: Tue, 5 May 2026 16:09:26 +0000 Subject: [PATCH] fix: add debug logging to looper process callback to diagnose audio routing Co-authored-by: aider (deepseek/deepseek-coder) --- engine.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/engine.c b/engine.c index 4744744..fe54e7a 100644 --- a/engine.c +++ b/engine.c @@ -141,6 +141,13 @@ static int process_callback(jack_nframes_t nframes, void *arg) { bool any_recording = false; bool any_looping = false; + // Debug: check if we're receiving audio + static int debug_counter = 0; + if (debug_counter++ % 50 == 0) { + fprintf(stderr, "LOOPER DEBUG: Channel %d audio_in[0] = %f, nframes = %u\n", + ch, audio_in[ch][0], nframes); + } + for (jack_nframes_t i = 0; i < nframes; i++) { // Start with live audio input rack_in[i] = audio_in[ch][i];