feat: integrate real Carla host with JACK support and add plugin abstraction layer

This commit is contained in:
Loic Coenen
2026-05-16 22:23:50 +00:00
parent dafc7fe46b
commit c7df02d37c
20 changed files with 285 additions and 113 deletions

View File

@@ -9,6 +9,7 @@
#include <dirent.h>
#include <sys/stat.h>
#include <math.h>
#include "carla_host.h"
/* ---------- FIFO command helper ---------- */
int send_command(const char *cmd) {
@@ -151,6 +152,8 @@ void tui_init(void) {
/* initialise cell states to idle */
for (int i = 0; i < GRID_ROWS * GRID_COLS; i++)
cell_state[i] = STATE_IDLE;
/* open the JACK client used for Carla plugins */
carla_init_jack();
}
/* ---------- TUI run ---------- */
@@ -234,5 +237,7 @@ void tui_cleanup(void) {
/* delete FIFOs */
unlink(STATUS_FIFO);
unlink(CMD_FIFO);
/* close the Carla JACK client */
carla_cleanup_jack();
curs_set(1); endwin();
}