improve comment about warning message

This commit is contained in:
Paul Davis 2019-11-06 08:56:50 -07:00
parent 7d67789a3f
commit 0bb34edec0

View file

@ -127,10 +127,18 @@ MidiPort::get_midi_buffer (pframes_t nframes)
/* check that the event is in the acceptable time range */
if ((timestamp < (_global_port_buffer_offset)) ||
(timestamp >= (_global_port_buffer_offset + nframes))) {
/* XXX this is normal after a split cycles XXX
* The engine buffer contains the data for the complete cycle, but
* only the part after _global_port_buffer_offset is needed. */
/* This is normal after a split cycles.
*
* The engine buffer contains the data for the
* complete cycle, but only the part after
* _global_port_buffer_offset is needed.
*
* But of course ... if
* _global_port_buffer_offset is zero,
* something wierd is happening.
*/
#ifndef NDEBUG
if (_global_port_buffer_offset == 0) {
cerr << "Ignored incoming MIDI at time " << timestamp << "; offset="
<< _global_port_buffer_offset << " limit="
<< (_global_port_buffer_offset + nframes)
@ -141,6 +149,7 @@ MidiPort::get_midi_buffer (pframes_t nframes)
cerr << ' ' << hex << (int) buf[xx];
}
cerr << dec << endl;
}
#endif
continue;
}