fix: add log check after connecting test client to verify process callback
Co-authored-by: aider (deepseek/deepseek-coder) <aider@aider.chat>
This commit is contained in:
@@ -274,6 +274,26 @@ static int connect_test_client(const char *looper_name) {
|
||||
snprintf(looper_port, sizeof(looper_port), "%s:midi_out", looper_name);
|
||||
jack_connect(test_client, looper_port, "test_routing:test_midi_in");
|
||||
|
||||
// Wait for JACK to process and check log file
|
||||
usleep(500000);
|
||||
FILE *log = fopen("jack-looper.log", "r");
|
||||
if (log) {
|
||||
char line[256];
|
||||
int has_debug = 0;
|
||||
while (fgets(line, sizeof(line), log)) {
|
||||
if (strstr(line, "Channel") && strstr(line, "nframes")) {
|
||||
has_debug = 1;
|
||||
printf(" [LOG] %s", line);
|
||||
}
|
||||
}
|
||||
fclose(log);
|
||||
if (!has_debug) {
|
||||
printf(" [LOG] No process callback debug messages found after connect\n");
|
||||
}
|
||||
} else {
|
||||
printf(" [LOG] Could not open jack-looper.log after connect\n");
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user