summaryrefslogtreecommitdiffstats
path: root/src/synth_engine.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/synth_engine.h')
-rw-r--r--src/synth_engine.h12
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();