#include <fcntl.h>
#include <stdbool.h>
#include <jackvst.h>
-#include <vst/aeffectx.h>
+#include <vestige/aeffectx.h>
+#include <pthread.h>
+#include <sched.h>
snd_seq_t *
create_sequencer (const char* client_name, bool isinput)
return;
}
- pevent = (struct VstMidiEevent *) vec[0].buf;
+ pevent = (struct VstMidiEvent *) vec[0].buf;
// printf("note: %d\n",note);
JackVST *jvst = (JackVST* )arg;
int val;
+ struct sched_param scp;
+ scp.sched_priority = 50;
+
+ // Try to set fifo priority...
+ // this works, if we are root or newe sched-cap manegment is used...
+ pthread_setschedparam( pthread_self(), SCHED_FIFO, &scp );
+
while (1) {
snd_seq_event_input (jvst->seq, &event);