summaryrefslogtreecommitdiff
path: root/libs/fst/vsti.c
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2009-02-27 17:11:21 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2009-02-27 17:11:21 +0000
commit63189be1df97d5a8659af8b76d1ca6b10d0e9627 (patch)
treef8c4ca5abc7cdedd2913a6ebe696635140cdd64e /libs/fst/vsti.c
parent903c0863d9c7490c86cbcb652bd362a266a6d468 (diff)
vestige-based VST support, back-ported from 2.0-ongoing
git-svn-id: svn://localhost/ardour2/branches/3.0@4703 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/fst/vsti.c')
-rw-r--r--libs/fst/vsti.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/libs/fst/vsti.c b/libs/fst/vsti.c
index f6d8725ddf..6a64f9c5e4 100644
--- a/libs/fst/vsti.c
+++ b/libs/fst/vsti.c
@@ -30,7 +30,9 @@
#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)
@@ -74,7 +76,7 @@ queue_midi (JackVST *jvst, int val1, int val2, int val3)
return;
}
- pevent = (struct VstMidiEevent *) vec[0].buf;
+ pevent = (struct VstMidiEvent *) vec[0].buf;
// printf("note: %d\n",note);
@@ -104,6 +106,13 @@ void *midireceiver(void *arg)
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);