summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-11-22 20:29:41 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-11-22 20:29:41 +0000
commit2929cd1c36fdc033f921bd1fcadabb909cc5e563 (patch)
tree93c4605e03221feaccb4c1408a7ab324d62df7ad
parentb27200688b1520fbcba7e6e5b555ae95f1fc4bf1 (diff)
tweak debug output
git-svn-id: svn://localhost/ardour2/branches/3.0@10780 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r--libs/ardour/midi_source.cc5
-rw-r--r--libs/evoral/src/Sequence.cpp2
2 files changed, 4 insertions, 3 deletions
diff --git a/libs/ardour/midi_source.cc b/libs/ardour/midi_source.cc
index 1093cb2c4b..bddb392221 100644
--- a/libs/ardour/midi_source.cc
+++ b/libs/ardour/midi_source.cc
@@ -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;
}
diff --git a/libs/evoral/src/Sequence.cpp b/libs/evoral/src/Sequence.cpp
index be3c7ec121..1001898a7c 100644
--- a/libs/evoral/src/Sequence.cpp
+++ b/libs/evoral/src/Sequence.cpp
@@ -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()));