- success = Evoral::EventRingBuffer<T>::full_read(ev_size, write_loc);
-
-#if 0
- cerr << "wrote MidiEvent to Buffer: " << hex;
- for (size_t i=0; i < ev_size; ++i) {
- cerr << (int) write_loc[i] << ' ';
+ bool success = read_contents (ev_size, write_loc);
+
+#ifndef NDEBUG
+ if (DEBUG::MidiDiskstreamIO && PBD::debug_bits) {
+ DEBUG_STR_DECL(a);
+ DEBUG_STR_APPEND(a, string_compose ("wrote MidiEvent to Buffer (time=%1, start=%2 offset=%3)", ev_time, start, offset));
+ for (size_t i=0; i < ev_size; ++i) {
+ DEBUG_STR_APPEND(a,hex);
+ DEBUG_STR_APPEND(a,"0x");
+ DEBUG_STR_APPEND(a,(int)write_loc[i]);
+ DEBUG_STR_APPEND(a,' ');
+ }
+ DEBUG_STR_APPEND(a,'\n');
+ DEBUG_TRACE (DEBUG::MidiDiskstreamIO, DEBUG_STR(a).str());