projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vestige-based VST support, back-ported from 2.0-ongoing
[ardour.git]
/
libs
/
fst
/
vsti.c
diff --git
a/libs/fst/vsti.c
b/libs/fst/vsti.c
index f6d8725ddffccd7ffcf011e2acbe5f4e7091e054..6a64f9c5e4810d934f4d3cdd2444bdba45b95ead 100644
(file)
--- a/
libs/fst/vsti.c
+++ b/
libs/fst/vsti.c
@@
-30,7
+30,9
@@
#include <fcntl.h>
#include <stdbool.h>
#include <jackvst.h>
#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)
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;
}
return;
}
- pevent = (struct VstMidiE
e
vent *) vec[0].buf;
+ pevent = (struct VstMidiEvent *) vec[0].buf;
// printf("note: %d\n",note);
// printf("note: %d\n",note);
@@
-104,6
+106,13
@@
void *midireceiver(void *arg)
JackVST *jvst = (JackVST* )arg;
int val;
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);
while (1) {
snd_seq_event_input (jvst->seq, &event);