diff options
author | David Robillard <d@drobilla.net> | 2007-04-07 01:00:45 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-04-07 01:00:45 +0000 |
commit | ad8fed85dac7a0c30c425e99738e0ad25e0f45a0 (patch) | |
tree | 74dacbcbcd96efe09ce62d14f7ca9ce0db5a196b /hosts | |
parent | 753ef8adab6dca2e865417b8b35871b81fb7d0c6 (diff) | |
download | lilv-ad8fed85dac7a0c30c425e99738e0ad25e0f45a0.tar.gz lilv-ad8fed85dac7a0c30c425e99738e0ad25e0f45a0.tar.bz2 lilv-ad8fed85dac7a0c30c425e99738e0ad25e0f45a0.zip |
Jack MIDI API fixes.
git-svn-id: http://svn.drobilla.net/lad/slv2@409 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'hosts')
-rw-r--r-- | hosts/lv2_jack_host.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hosts/lv2_jack_host.c b/hosts/lv2_jack_host.c index 1118a6c..ac9f2ff 100644 --- a/hosts/lv2_jack_host.c +++ b/hosts/lv2_jack_host.c @@ -249,11 +249,11 @@ jack_process_cb(jack_nframes_t nframes, void* data) jack_midi_event_t ev; const jack_nframes_t event_count - = jack_midi_get_event_count(jack_buffer, nframes); + = jack_midi_get_event_count(jack_buffer); for (jack_nframes_t e=0; e < event_count; ++e) { - jack_midi_event_get(&ev, jack_buffer, e, nframes); + jack_midi_event_get(&ev, jack_buffer, e); state.midi = host->ports[p].midi_buffer; lv2midi_put_event(&state, (double)ev.time, ev.size, ev.buffer); @@ -278,7 +278,7 @@ jack_process_cb(jack_nframes_t nframes, void* data) void* jack_buffer = jack_port_get_buffer(host->ports[p].jack_port, nframes); - jack_midi_clear_buffer(jack_buffer, nframes); + jack_midi_clear_buffer(jack_buffer); LV2_MIDIState state; lv2midi_reset_state(&state, host->ports[p].midi_buffer, nframes); @@ -293,7 +293,7 @@ jack_process_cb(jack_nframes_t nframes, void* data) lv2midi_get_event(&state, ×tamp, &size, &data); jack_midi_event_write(jack_buffer, - (jack_nframes_t)timestamp, data, size, nframes); + (jack_nframes_t)timestamp, data, size); lv2midi_increment(&state); } |