summaryrefslogtreecommitdiffstats
path: root/hosts/lv2_jack_host.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-04-08 20:14:34 +0000
committerDavid Robillard <d@drobilla.net>2007-04-08 20:14:34 +0000
commitd33da68e658d171540ceec8f89464783e50267a6 (patch)
tree829c1e570ae96714bc8bdb5de85df869bbfb686f /hosts/lv2_jack_host.c
parentbcc2ea190965fb3da1092ff6683e0e54454c6a9d (diff)
downloadlilv-d33da68e658d171540ceec8f89464783e50267a6.tar.gz
lilv-d33da68e658d171540ceec8f89464783e50267a6.tar.bz2
lilv-d33da68e658d171540ceec8f89464783e50267a6.zip
More Jack hacks. Dmitry owes me $20.
git-svn-id: http://svn.drobilla.net/lad/slv2@428 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'hosts/lv2_jack_host.c')
-rw-r--r--hosts/lv2_jack_host.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hosts/lv2_jack_host.c b/hosts/lv2_jack_host.c
index 93a17e1..62fe0e9 100644
--- a/hosts/lv2_jack_host.c
+++ b/hosts/lv2_jack_host.c
@@ -294,8 +294,13 @@ jack_process_cb(jack_nframes_t nframes, void* data)
for (uint32_t i=0; i < event_count; ++i) {
lv2midi_get_event(&state, &timestamp, &size, &data);
+#if defined(JACK_MIDI_NEEDS_NFRAMES)
+ jack_midi_event_write(jack_buffer,
+ (jack_nframes_t)timestamp, data, size, nframes);
+#else
jack_midi_event_write(jack_buffer,
(jack_nframes_t)timestamp, data, size);
+#endif
lv2midi_increment(&state);
}