diff options
Diffstat (limited to 'hosts/lv2_jack_host.c')
-rw-r--r-- | hosts/lv2_jack_host.c | 5 |
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, ×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); } |