From 86637e192ca87a2c0562122b371dacdfc0572c70 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 23 Jan 2007 04:48:55 +0000 Subject: Jack MIDI fixes, "fixed" (increased) ranges on control dialog range spinners. git-svn-id: http://svn.drobilla.net/lad/ingen@269 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/JackMidiDriver.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/libs/engine/JackMidiDriver.cpp') diff --git a/src/libs/engine/JackMidiDriver.cpp b/src/libs/engine/JackMidiDriver.cpp index c21484e3..a976464e 100644 --- a/src/libs/engine/JackMidiDriver.cpp +++ b/src/libs/engine/JackMidiDriver.cpp @@ -64,10 +64,6 @@ JackMidiPort::~JackMidiPort() * * This is basically trivial (as opposed to AlsaMidiPort) since Jack MIDI * data is in-band with the audio thread. - * - * Prepares all events that occurred during the time interval passed - * (which ideally are the events from the previous cycle with an exact - * 1 cycle delay). */ void JackMidiPort::prepare_block(const SampleCount block_start, const SampleCount block_end) @@ -94,6 +90,8 @@ JackMidiPort::prepare_block(const SampleCount block_start, const SampleCount blo message->time = ev->time; message->size = ev->size; message->buffer = ev->buffer; + + assert(message->time < nframes); } //cerr << "Jack MIDI got " << event_count << " events." << endl; -- cgit v1.2.1