fix: move CarlaHost to Engine struct and fix TUI plugin dialog access

Co-authored-by: aider (deepseek/deepseek-coder) <aider@aider.chat>
This commit is contained in:
Loic Coenen
2026-05-03 10:30:36 +00:00
parent 8c9804d2ef
commit adcc5e14cf
5 changed files with 16 additions and 13 deletions

5
main.c
View File

@@ -97,10 +97,7 @@ int main(int argc, char *argv[]) {
initial_state.clips[i].read_position = 0;
}
// Initialize Carla host in the initial state (before dispatcher starts)
carla_init(&initial_state.carla_host, NULL);
carla_scan_plugins(&initial_state.carla_host);
// Carla host is now initialized in engine_init
// Initialize dispatcher
dispatch = dispatcher_init(&initial_state);