Index: hosts/jack_compat.h =================================================================== --- hosts/jack_compat.h (revision 426) +++ hosts/jack_compat.h (working copy) @@ -45,6 +45,15 @@ #define jack_midi_event_get jack_midi_event_get_compat +void +jack_midi_clear_buffer_compat( + void * port_buffer) +{ + jack_midi_clear_buffer(port_buffer, 0); +} + +#define jack_midi_clear_buffer jack_midi_clear_buffer_compat + #else #if defined(HAVE_OLD_JACK_MIDI) Index: hosts/lv2_jack_host.c =================================================================== --- hosts/lv2_jack_host.c (revision 426) +++ hosts/lv2_jack_host.c (working copy) @@ -294,8 +294,13 @@ for (uint32_t i=0; i < event_count; ++i) { lv2midi_get_event(&state, ×tamp, &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); }