fix: correct JACK shutdown callback signature and suppress unused parameter warning

Co-authored-by: aider (deepseek/deepseek-coder) <aider@aider.chat>
This commit is contained in:
Loic Coenen
2026-05-01 00:49:21 +00:00
parent 7df107eb1e
commit 1e1594adca
2 changed files with 3 additions and 2 deletions

View File

@@ -84,10 +84,10 @@ static int process_callback(jack_nframes_t nframes, void *arg) {
}
// JACK shutdown callback
static void shutdown_callback(jack_status_t code, const char *reason, void *arg) {
static void shutdown_callback(void *arg) {
Engine *engine = (Engine *)arg;
engine->running = false;
fprintf(stderr, "JACK shutdown: %s\n", reason);
fprintf(stderr, "JACK shutdown\n");
}
int engine_init(Engine *engine, const char *client_name) {