tweak debug output

git-svn-id: svn://localhost/ardour2/branches/3.0@10780 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis
2011-11-22 20:29:41 +00:00
parent b27200688b
commit 2929cd1c36
2 changed files with 4 additions and 3 deletions

View File

@@ -241,6 +241,8 @@ MidiSource::midi_read (Evoral::EventSink<framepos_t>& dst, framepos_t source_sta
}
}
} else {
DEBUG_TRACE (DEBUG::MidiSourceIO, string_compose ("%1: reached end with event @ %2 vs. %3\n",
_name, time_frames, start+cnt));
break;
}
}
@@ -258,7 +260,7 @@ framecnt_t
MidiSource::midi_write (MidiRingBuffer<framepos_t>& source, framepos_t source_start, framecnt_t duration)
{
Glib::Mutex::Lock lm (_lock);
cerr << "MidiSource calling write unlocked\n";
const framecnt_t ret = write_unlocked (source, source_start, duration);
if (duration == max_framecnt) {
@@ -267,7 +269,6 @@ MidiSource::midi_write (MidiRingBuffer<framepos_t>& source, framepos_t source_st
_last_write_end += duration;
}
cerr << name() << " last write end now @ " << _last_write_end << endl;
return ret;
}

View File

@@ -682,7 +682,7 @@ Sequence<Time>::add_note_unlocked(const NotePtr note, void* arg)
/* This is the core method to add notes to a Sequence
*/
DEBUG_TRACE (DEBUG::Sequence, string_compose ("%1 add note %2 @ %3\n", this, (int)note->note(), note->time()));
DEBUG_TRACE (DEBUG::Sequence, string_compose ("%1 add note %2 @ %3 dur %4\n", this, (int)note->note(), note->time(), note->length()));
if (resolve_overlaps_unlocked (note, arg)) {
DEBUG_TRACE (DEBUG::Sequence, string_compose ("%1 DISALLOWED: note %2 @ %3\n", this, (int)note->note(), note->time()));