fix: add debug logging to looper process callback to diagnose audio routing

Co-authored-by: aider (deepseek/deepseek-coder) <aider@aider.chat>
This commit is contained in:
Loic Coenen
2026-05-05 16:09:26 +00:00
parent 52096a7c49
commit e2840a01a7

View File

@@ -141,6 +141,13 @@ static int process_callback(jack_nframes_t nframes, void *arg) {
bool any_recording = false; bool any_recording = false;
bool any_looping = 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++) { for (jack_nframes_t i = 0; i < nframes; i++) {
// Start with live audio input // Start with live audio input
rack_in[i] = audio_in[ch][i]; rack_in[i] = audio_in[ch][i];