feat: add logging system and debug audio routing
Co-authored-by: aider (deepseek/deepseek-coder) <aider@aider.chat>
This commit is contained in:
6
main.c
6
main.c
@@ -10,6 +10,7 @@
|
||||
#include "dispatcher.h"
|
||||
#include "carla.h"
|
||||
#include "fs.h"
|
||||
#include "logging.h"
|
||||
|
||||
static Engine engine;
|
||||
static volatile int keep_running = 1;
|
||||
@@ -129,6 +130,10 @@ int main(int argc, char *argv[]) {
|
||||
dispatch = dispatcher_init(initial_state);
|
||||
free(initial_state);
|
||||
|
||||
// Initialize logging
|
||||
log_init("jack-looper.log", LOG_LEVEL_DEBUG);
|
||||
LOG_INFO("JACK Looper starting...");
|
||||
|
||||
// Initialize filesystem module (auto-save thread)
|
||||
fs_init();
|
||||
|
||||
@@ -192,6 +197,7 @@ int main(int argc, char *argv[]) {
|
||||
engine_cleanup(&engine);
|
||||
fs_cleanup();
|
||||
dispatcher_stop();
|
||||
log_cleanup();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user