aboutsummaryrefslogtreecommitdiffstats
path: root/src/jalv.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-02-28 00:15:20 +0000
committerDavid Robillard <d@drobilla.net>2012-02-28 00:15:20 +0000
commit574cb313ce5c2c60976fd243e212529ce86b566b (patch)
tree40935728239585fa007187073124a25ad307aee5 /src/jalv.c
parentc921a5bec946005c30b010d160b866c0751b5f8f (diff)
downloadjalv-574cb313ce5c2c60976fd243e212529ce86b566b.tar.gz
jalv-574cb313ce5c2c60976fd243e212529ce86b566b.tar.bz2
jalv-574cb313ce5c2c60976fd243e212529ce86b566b.zip
Update LV2_Evbuf (matches that used in current ardour 3.0).
git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@4003 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/jalv.c')
-rw-r--r--src/jalv.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/jalv.c b/src/jalv.c
index 5a76deb..5f89962 100644
--- a/src/jalv.c
+++ b/src/jalv.c
@@ -225,7 +225,9 @@ jalv_allocate_port_buffers(Jalv* jalv)
lv2_evbuf_free(port->evbuf);
port->evbuf = lv2_evbuf_new(
jalv->midi_buf_size,
- port->old_api ? LV2_EVBUF_EVENT : LV2_EVBUF_ATOM);
+ port->old_api ? LV2_EVBUF_EVENT : LV2_EVBUF_ATOM,
+ jalv->map.map(jalv->map.handle,
+ lilv_node_as_string(jalv->seq_class)));
lilv_instance_connect_port(
jalv->instance, i, lv2_evbuf_get_buffer(port->evbuf));
default: break;
@@ -427,6 +429,7 @@ jack_process_cb(jack_nframes_t nframes, void* data)
uint8_t* data;
lv2_evbuf_get(i, &frames, &subframes,
&type, &size, &data);
+ // FIXME: check type
jack_midi_event_write(buf, frames, data, size);
/* TODO: Be more disciminate about what to send */
@@ -622,7 +625,8 @@ main(int argc, char** argv)
host.control_class = lilv_new_uri(world, LILV_URI_CONTROL_PORT);
host.audio_class = lilv_new_uri(world, LILV_URI_AUDIO_PORT);
host.event_class = lilv_new_uri(world, LILV_URI_EVENT_PORT);
- host.msg_port_class = lilv_new_uri(world, NS_ATOM "MessagePort");
+ host.seq_class = lilv_new_uri(world, LV2_ATOM__Sequence);
+ host.msg_port_class = lilv_new_uri(world, LV2_ATOM__MessagePort);
host.midi_class = lilv_new_uri(world, LILV_URI_MIDI_EVENT);
host.preset_class = lilv_new_uri(world, NS_PSET "Preset");
host.label_pred = lilv_new_uri(world, LILV_NS_RDFS "label");