diff options
author | grm <grm@eyesin.space> | 2025-02-24 20:02:32 +0200 |
---|---|---|
committer | grm <grm@eyesin.space> | 2025-02-24 20:02:32 +0200 |
commit | d5e9beaf5cc38c0e57bbc555a6e3054f3bf000d8 (patch) | |
tree | 1095f34468e3effb10a336f553e30cda45e017b5 /src/synth_engine.h | |
parent | 35208c579c9e7d0078d786e61f4a323919e2dcdf (diff) | |
download | synth-project-d5e9beaf5cc38c0e57bbc555a6e3054f3bf000d8.tar.gz synth-project-d5e9beaf5cc38c0e57bbc555a6e3054f3bf000d8.tar.bz2 synth-project-d5e9beaf5cc38c0e57bbc555a6e3054f3bf000d8.zip |
Add audiomidisetup screen and improve audio device handling
Diffstat (limited to 'src/synth_engine.h')
-rw-r--r-- | src/synth_engine.h | 12 |
1 files changed, 10 insertions, 2 deletions
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(); |