summaryrefslogtreecommitdiff
path: root/lv2/lv2.cc
diff options
context:
space:
mode:
authorJonas Suhr Christensen <jsc@umbraculum.org>2014-03-07 04:25:52 +0100
committerJonas Suhr Christensen <jsc@umbraculum.org>2014-03-07 04:25:52 +0100
commit74b8a63270c1c0b01b33e861c26b1e2a59eeb82b (patch)
tree799aaec0d88e50172e17b61af37ca391a83d59d3 /lv2/lv2.cc
parent75702e36ddb30ca2924cb42dc0b44ddfbdac36e5 (diff)
Changed midi handling from event extension to atom extension.
Diffstat (limited to 'lv2/lv2.cc')
-rw-r--r--lv2/lv2.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/lv2/lv2.cc b/lv2/lv2.cc
index c1f1ecc..3aeb5f0 100644
--- a/lv2/lv2.cc
+++ b/lv2/lv2.cc
@@ -27,6 +27,7 @@
#include <lv2/lv2plug.in/ns/lv2core/lv2.h>
#include <stdlib.h>
+#include <string.h>
#include "lv2_gui.h"
@@ -34,7 +35,7 @@
#include <hugin.hpp>
-#define MIDI_EVENT_URI "http://lv2plug.in/ns/ext/midi#MidiEvent"
+#include <lv2/lv2plug.in/ns/ext/atom/atom.h>
#define NS_ATOM "http://lv2plug.in/ns/ext/atom#"
#define NS_DG "http://drumgizmo.org/lv2/atom#"
@@ -310,7 +311,7 @@ void connect_port(LV2_Handle instance,
DGLV2 *dglv2 = (DGLV2 *)instance;
if(port == 0) {// MIDI in
- dglv2->in->eventPort = (LV2_Event_Buffer*)data_location;
+ dglv2->in->eventPort = (LV2_Atom_Sequence*)data_location;
} else {// Audio Port
if(port - 1 < NUM_OUTPUTS) {
dglv2->out->outputPorts[port - 1].samples = (sample_t*)data_location;