summaryrefslogtreecommitdiff
path: root/libs/ardour
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-08-12 05:40:11 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2013-08-12 05:40:11 -0400
commita5a3f713d596fd3d0157017263d6207b5427d133 (patch)
treef9cebc2a711625497d05f757de9394237f80ddf6 /libs/ardour
parent50bbf3f656b6dbf2e338761c05a59236f1792142 (diff)
assorted extra debug output for MTC
Diffstat (limited to 'libs/ardour')
-rw-r--r--libs/ardour/midi_port.cc4
-rw-r--r--libs/ardour/mtc_slave.cc8
2 files changed, 10 insertions, 2 deletions
diff --git a/libs/ardour/midi_port.cc b/libs/ardour/midi_port.cc
index 5589c6e501..1816ddcb6f 100644
--- a/libs/ardour/midi_port.cc
+++ b/libs/ardour/midi_port.cc
@@ -71,7 +71,9 @@ MidiPort::get_midi_buffer (pframes_t nframes)
/* suck all relevant MIDI events from the MIDI port buffer
into our MidiBuffer
*/
-
+
+ cerr << "grabbing " << event_count << " events\n";
+
for (pframes_t i = 0; i < event_count; ++i) {
pframes_t timestamp;
diff --git a/libs/ardour/mtc_slave.cc b/libs/ardour/mtc_slave.cc
index 80d89d6215..7f68e54f4b 100644
--- a/libs/ardour/mtc_slave.cc
+++ b/libs/ardour/mtc_slave.cc
@@ -106,6 +106,8 @@ MTC_Slave::process (pframes_t nframes)
/* dump incoming MIDI to parser */
+ cerr << "\n\n\n<<<< MTC slave, process " << mb.size() << endl;
+
for (MidiBuffer::iterator b = mb.begin(); b != mb.end(); ++b) {
uint8_t* buf = (*b).buffer();
@@ -113,11 +115,15 @@ MTC_Slave::process (pframes_t nframes)
uint32_t limit = (*b).size();
+ cerr << "msg of " << limit << " bytes\n";
+
for (size_t n = 0; n < limit; ++n) {
parser.scanner (buf[n]);
}
}
+ cerr << ">>>> MTC slave, done processing\n\n\n";
+
return 0;
}
@@ -331,7 +337,7 @@ MTC_Slave::update_mtc_time (const byte *msg, bool was_full, framepos_t now)
a locate command via MMC.
*/
- //DEBUG_TRACE (DEBUG::MTC, string_compose ("MTC::update_mtc_time - TID:%1\n", ::pthread_self()));
+ DEBUG_TRACE (DEBUG::MTC, string_compose ("MTC::update_mtc_time - TID:%1\n", ::pthread_self()));
TimecodeFormat tc_format;
bool reset_tc = true;