diff options
author | Carl Hetherington <carl@carlh.net> | 2010-08-10 00:09:42 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-08-10 00:09:42 +0000 |
commit | 507e996d06827505c2aad865dcc08dab4bfece8e (patch) | |
tree | 3ceab427e73551f81a753d40c6b1a3b0e1846788 /libs/ardour/midi_port.cc | |
parent | 3cce57d490ad51845b8447ba5630b8d2820d541b (diff) |
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
Diffstat (limited to 'libs/ardour/midi_port.cc')
-rw-r--r-- | libs/ardour/midi_port.cc | 4 |
1 files changed, 3 insertions, 1 deletions
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"; } } |