refactor: split monolithic main.c into modular source files

Co-authored-by: aider (deepseek/deepseek-reasoner) <aider@aider.chat>
This commit is contained in:
Loic Coenen
2026-05-08 21:03:10 +00:00
parent f1a92f1e95
commit 96295fdb4c
8 changed files with 423 additions and 336 deletions

18
src/looper.h Normal file
View File

@@ -0,0 +1,18 @@
#ifndef LOOPER_H
#define LOOPER_H
#include <jack/jack.h>
/* Initialisation must be called after setting process callback */
int looper_init(jack_client_t *client);
/* Process callback to be called by JACK */
int process_callback(jack_nframes_t nframes, void *arg);
/* Shutdown callback */
void jack_shutdown_cb(void *arg);
/* Mainloop command processing (add/remove channels) */
void looper_process_commands(jack_client_t *client);
#endif