From d5e9beaf5cc38c0e57bbc555a6e3054f3bf000d8 Mon Sep 17 00:00:00 2001 From: grm Date: Mon, 24 Feb 2025 20:02:32 +0200 Subject: Add audiomidisetup screen and improve audio device handling --- src/synth_engine.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/synth_engine.h') diff --git a/src/synth_engine.h b/src/synth_engine.h index 16c2135..21e427c 100644 --- a/src/synth_engine.h +++ b/src/synth_engine.h @@ -9,6 +9,7 @@ #include "adsr.h" #include "control.h" #include "pa_ringbuffer.h" +#include "gui.h" #ifndef M_PI #define M_PI (3.14159265) @@ -16,6 +17,11 @@ #define RING_SIZE 65536 +typedef struct soundcard_t { + char name[2048]; + int id; +} soundcard_t; + typedef struct lfo_t { float freq; float amp; @@ -129,12 +135,14 @@ typedef struct { int active; int sound_active; - int soundcard_id; + soundcard_t soundcard; int midi_device_id; synth_viz viz; - struct midi_t * midi; + struct midi_t *midi; + + synth_gui gui; } synth_t; synth_t * init_synth(); -- cgit v1.2.3