fix: add debug print to process_callback to verify it runs

Co-authored-by: aider (deepseek/deepseek-coder) <aider@aider.chat>
This commit is contained in:
Loic Coenen
2026-05-05 16:44:28 +00:00
parent 86cc2652c8
commit 5e7cf61156

View File

@@ -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];