summaryrefslogtreecommitdiffstats
path: root/src/libs
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-04-07 01:00:45 +0000
committerDavid Robillard <d@drobilla.net>2007-04-07 01:00:45 +0000
commit5c8bc74d3ca5b2197db50f0ce072bd3e75db8975 (patch)
tree7ceeea804ffd66aad9f836785dd92b796732d10f /src/libs
parentbaf083b6075076cd20317d88fd25a370448f2bd7 (diff)
downloadingen-5c8bc74d3ca5b2197db50f0ce072bd3e75db8975.tar.gz
ingen-5c8bc74d3ca5b2197db50f0ce072bd3e75db8975.tar.bz2
ingen-5c8bc74d3ca5b2197db50f0ce072bd3e75db8975.zip
Jack MIDI API fixes.
git-svn-id: http://svn.drobilla.net/lad/ingen@409 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs')
-rw-r--r--src/libs/engine/JackMidiDriver.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/engine/JackMidiDriver.cpp b/src/libs/engine/JackMidiDriver.cpp
index 937cce98..b7085dd3 100644
--- a/src/libs/engine/JackMidiDriver.cpp
+++ b/src/libs/engine/JackMidiDriver.cpp
@@ -73,14 +73,14 @@ JackMidiPort::prepare_block(const SampleCount block_start, const SampleCount blo
const SampleCount nframes = block_end - block_start;
void* jack_buffer = jack_port_get_buffer(_jack_port, nframes);
- const jack_nframes_t event_count = jack_midi_get_event_count(jack_buffer, nframes);
+ const jack_nframes_t event_count = jack_midi_get_event_count(jack_buffer);
assert(event_count < _patch_port->buffer_size());
// Copy events from Jack port buffer into patch port buffer
for (jack_nframes_t i=0; i < event_count; ++i) {
jack_midi_event_t* ev = (jack_midi_event_t*)&_patch_port->buffer(0)->value_at(i);
- jack_midi_event_get(ev, jack_buffer, i, nframes);
+ jack_midi_event_get(ev, jack_buffer, i);
// MidiMessage and jack_midi_event_t* are the same thing :/
MidiMessage* const message = &_patch_port->buffer(0)->data()[i];