From 39bd41ad4d4832d4022a99e3cfcc49409f8b2da6 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Sat, 12 Oct 2024 06:14:14 +0200 Subject: Added basic interface and keyboard capture of terminal --- synth.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'synth.c') diff --git a/synth.c b/synth.c index d65ba41..3608eb3 100644 --- a/synth.c +++ b/synth.c @@ -4,6 +4,7 @@ #include "synth.h" #include "mutex.h" #include "minisdl_audio.h" +#include "termbox2.h" #define TSF_IMPLEMENTATION #include "tsf.h" @@ -73,7 +74,7 @@ void *synth(void *arg) { SDL_UnlockMutex(g_Mutex); - printf("Consumed: note=%d, state=%d velocity:%d\n", shared_data.note, shared_data.state, shared_data.velocity); + /* printf("Consumed: note=%d, state=%d velocity:%d\n", shared_data.note, shared_data.state, shared_data.velocity); */ // Reset state to indicate data has been consumed. shared_data.action = 0; -- cgit v1.2.3