// Synthesize LoopEvent here, because the next events
// written will have non-monotonic timestamps.
_playback_buf->write(loop_end - 1, LoopEventType, sizeof (framepos_t), (uint8_t *) &loop_start);
- cout << "Pushing LoopEvent ts=" << loop_end-1
- << " start+this_read " << start+this_read << endl;
-
start = loop_start;
} else {
start += this_read;
using namespace ARDOUR;
using namespace PBD;
-/** Read a block of MIDI events from buffer into a MidiBuffer.
+/** Read a block of MIDI events from this buffer into a MidiBuffer.
*
* Timestamps of events returned are relative to start (i.e. event with stamp 0
* occurred at start), with offset added.
// This event marks a loop end (i.e. the next event's timestamp will be non-monotonic)
if (ev_type == LoopEventType) {
- cerr << "MRB loop boundary @ " << ev_time << endl;
-
- assert (ev_size == sizeof (nframes_t));
+ assert (ev_size == sizeof (framepos_t));
nframes_t loop_start;
read_contents (ev_size, (uint8_t *) &loop_start);