Revert previous ill-thought-out patch.
[ardour.git] / libs / fst / jackvst.h
1 #ifndef __jack_vst_h__
2 #define __jack_vst_h__
3
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>
10
11 typedef struct _JackVST JackVST;
12
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;
26
27     int            midi_map[128];
28     volatile int   midi_learn;
29     volatile int   midi_learn_CC;
30     volatile int   midi_learn_PARAM;
31
32     int            resume_called;
33
34     /* For VST/i support */
35
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;
42 };
43
44 #define MIDI_EVENT_MAX 1024
45
46 #endif /* __jack_vst_h__ */