From f7f18f9fa7cc099a118c2d7a98d720b14e099524 Mon Sep 17 00:00:00 2001 From: Loic Coenen Date: Sat, 9 May 2026 21:31:52 +0000 Subject: [PATCH] style: fix formatting and include order in source files --- src/looper.c | 3 +-- src/main.c | 7 +++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/looper.c b/src/looper.c index dae0dd1..610f08a 100644 --- a/src/looper.c +++ b/src/looper.c @@ -83,8 +83,7 @@ int process_callback(jack_nframes_t nframes, void *arg) { const float *f_in = (const float *)in; for (i = 0; i < nframes; i++) { if (channels[c].record_pos < LOOP_BUF_SIZE) - channels[c].loop_buffer[channels[c].record_pos++] = - f_in[i]; + channels[c].loop_buffer[channels[c].record_pos++] = f_in[i]; f_out[i] = f_in[i]; } } else { diff --git a/src/main.c b/src/main.c index 9a82edd..61220f7 100644 --- a/src/main.c +++ b/src/main.c @@ -3,8 +3,8 @@ #include #include #include -#include #include +#include int main(int argc, char *argv[]) { (void)argc; @@ -43,7 +43,10 @@ int main(int argc, char *argv[]) { while (1) { looper_process_commands(client); - { struct timespec ts = { .tv_sec = 0, .tv_nsec = 50000000 }; nanosleep(&ts, NULL); } /* check commands every 50 ms */ + { + struct timespec ts = {.tv_sec = 0, .tv_nsec = 50000000}; + nanosleep(&ts, NULL); + } /* check commands every 50 ms */ } jack_client_close(client);