From 507e996d06827505c2aad865dcc08dab4bfece8e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 10 Aug 2010 00:09:42 +0000 Subject: [PATCH] Don't drop MIDI messages that arrive at the very start of a JACK buffer, and add a temporary warning message to indicate when such drops happen. git-svn-id: svn://localhost/ardour2/branches/3.0@7582 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/midi_port.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/ardour/midi_port.cc b/libs/ardour/midi_port.cc index 4c57b2918e..807fd5ba0d 100644 --- a/libs/ardour/midi_port.cc +++ b/libs/ardour/midi_port.cc @@ -80,8 +80,10 @@ MidiPort::get_midi_buffer (nframes_t nframes, nframes_t offset) continue; } - if (ev.time > off && ev.time < off+nframes) { + if (ev.time >= off && ev.time < off+nframes) { _buffer->push_back (ev); + } else { + cerr << "Dropping incoming MIDI at time " << ev.time << "; offset=" << off << " limit=" << (off + nframes) << "\n"; } }