diff options
author | Jonas Suhr Christensen <jsc@umbraculum.org> | 2014-03-07 04:25:52 +0100 |
---|---|---|
committer | Jonas Suhr Christensen <jsc@umbraculum.org> | 2014-03-07 04:25:52 +0100 |
commit | 74b8a63270c1c0b01b33e861c26b1e2a59eeb82b (patch) | |
tree | 799aaec0d88e50172e17b61af37ca391a83d59d3 /lv2/lv2.cc | |
parent | 75702e36ddb30ca2924cb42dc0b44ddfbdac36e5 (diff) |
Changed midi handling from event extension to atom extension.
Diffstat (limited to 'lv2/lv2.cc')
-rw-r--r-- | lv2/lv2.cc | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; |