diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-01-27 00:34:04 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-01-27 00:34:04 +0000 |
commit | c42d0a5fa424c6cb8e45b76776e4fe824a116518 (patch) | |
tree | 2a1ea27b3d88332a21883195019c5fe9f363cb25 /libs | |
parent | acaf98ce382b3de95e059719d338ffea4d7ea73d (diff) |
more MTC debugging
git-svn-id: svn://localhost/ardour2/branches/3.0@6565 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/mtc_slave.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/ardour/mtc_slave.cc b/libs/ardour/mtc_slave.cc index d5ffd56c4f..13f0bb0a3d 100644 --- a/libs/ardour/mtc_slave.cc +++ b/libs/ardour/mtc_slave.cc @@ -186,9 +186,10 @@ MTC_Slave::update_mtc_time (const byte *msg, bool was_full, nframes_t now) session.timecode_to_sample (timecode, mtc_frame, true, false); session.request_locate (mtc_frame, false); session.request_transport_speed (0); - DEBUG_TRACE (DEBUG::MTC, string_compose ("reset MTC status to stopped, outside MTC window (%1 .. %2 vs. %3)", + DEBUG_TRACE (DEBUG::MTC, string_compose ("reset MTC status to stopped, outside MTC window (%1 .. %2 vs. %3)\n", window_begin, window_end, mtc_frame)); update_mtc_status (MIDI::MTC_Stopped); + DEBUG_TRACE (DEBUG::MTC, string_compose ("outside, so window root reset to %1\n", mtc_frame)); reset_window (mtc_frame); reset (); @@ -280,6 +281,7 @@ MTC_Slave::update_mtc_time (const byte *msg, bool was_full, nframes_t now) } if (window_root >= 0) { + DEBUG_TRACE (DEBUG::MTC, string_compose ("window root reset to %1\n", window_root)); reset_window (window_root); } } @@ -526,6 +528,8 @@ MTC_Slave::reset_window (nframes64_t root) ahead of the window root (taking direction into account). */ + DEBUG_TRACE (DEBUG::MTC, string_compose ("trying to reset MTC window with state = %1\n", enum_2_string (port->input()->mtc_running()))); + switch (port->input()->mtc_running()) { case MTC_Forward: window_begin = root; |