mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-11 17:16:38 +01:00
improve comment about warning message
This commit is contained in:
parent
7d67789a3f
commit
0bb34edec0
1 changed files with 21 additions and 12 deletions
|
|
@ -127,20 +127,29 @@ MidiPort::get_midi_buffer (pframes_t nframes)
|
||||||
/* check that the event is in the acceptable time range */
|
/* check that the event is in the acceptable time range */
|
||||||
if ((timestamp < (_global_port_buffer_offset)) ||
|
if ((timestamp < (_global_port_buffer_offset)) ||
|
||||||
(timestamp >= (_global_port_buffer_offset + nframes))) {
|
(timestamp >= (_global_port_buffer_offset + nframes))) {
|
||||||
/* XXX this is normal after a split cycles XXX
|
/* 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. */
|
* 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
|
#ifndef NDEBUG
|
||||||
cerr << "Ignored incoming MIDI at time " << timestamp << "; offset="
|
if (_global_port_buffer_offset == 0) {
|
||||||
<< _global_port_buffer_offset << " limit="
|
cerr << "Ignored incoming MIDI at time " << timestamp << "; offset="
|
||||||
<< (_global_port_buffer_offset + nframes)
|
<< _global_port_buffer_offset << " limit="
|
||||||
<< " = (" << _global_port_buffer_offset
|
<< (_global_port_buffer_offset + nframes)
|
||||||
<< " + " << nframes
|
<< " = (" << _global_port_buffer_offset
|
||||||
<< ")";
|
<< " + " << nframes
|
||||||
for (size_t xx = 0; xx < size; ++xx) {
|
<< ")";
|
||||||
cerr << ' ' << hex << (int) buf[xx];
|
for (size_t xx = 0; xx < size; ++xx) {
|
||||||
|
cerr << ' ' << hex << (int) buf[xx];
|
||||||
|
}
|
||||||
|
cerr << dec << endl;
|
||||||
}
|
}
|
||||||
cerr << dec << endl;
|
|
||||||
#endif
|
#endif
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue