various fixes to MidiRegionView selection handling, key handling, drawing of ghost...
[ardour2.git] / libs / fst / jackvst.h
blob31e34f55b9442e49f482235545528e2280287ef3
1 #ifndef __jack_vst_h__
2 #define __jack_vst_h__
4 #include <sys/types.h>
5 #include <sys/time.h>
6 #include <jack/jack.h>
7 #include <jack/ringbuffer.h>
8 #include <fst.h>
9 #include <alsa/asoundlib.h>
11 typedef struct _JackVST JackVST;
13 struct _JackVST {
14 jack_client_t *client;
15 FSTHandle* handle;
16 FST* fst;
17 float **ins;
18 float **outs;
19 jack_port_t *midi_port;
20 jack_port_t **inports;
21 jack_port_t **outports;
22 void* userdata;
23 int bypassed;
24 int muted;
25 int current_program;
27 int midi_map[128];
28 volatile int midi_learn;
29 volatile int midi_learn_CC;
30 volatile int midi_learn_PARAM;
32 int resume_called;
34 /* For VST/i support */
36 int want_midi;
37 pthread_t midi_thread;
38 snd_seq_t* seq;
39 int midiquit;
40 jack_ringbuffer_t* event_queue;
41 struct VstEvents* events;
44 #define MIDI_EVENT_MAX 1024
46 #endif /* __jack_vst_h__ */