diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-01-26 22:23:15 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-01-26 22:23:15 +0000 |
commit | 40a6c4f1a09c3bb31afe9668b347c683efb2cf06 (patch) | |
tree | d9f24ee950c1fb16d9116f4055c4b85672c9e750 /libs/midi++2/mtc.cc | |
parent | 832aa18a813f5ed4cb8e1228c52d89ee6d8946c7 (diff) |
debugging
git-svn-id: svn://localhost/ardour2/branches/3.0@6562 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/midi++2/mtc.cc')
-rw-r--r-- | libs/midi++2/mtc.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libs/midi++2/mtc.cc b/libs/midi++2/mtc.cc index 37163da4e6..e12608de7d 100644 --- a/libs/midi++2/mtc.cc +++ b/libs/midi++2/mtc.cc @@ -33,6 +33,8 @@ using namespace std; using namespace sigc; using namespace MIDI; +#define DEBUG_MTC + bool Parser::possible_mtc (byte *sysex_buf, size_t msglen) { @@ -62,6 +64,9 @@ Parser::possible_mtc (byte *sysex_buf, size_t msglen) mtc (*this, &sysex_buf[1], msglen - 1); mtc_time (fake_mtc_time, true, _timestamp); +#ifdef DEBUG_MTC + cerr << "New full-MTC message marks state stopped" << endl; +#endif mtc_status (MTC_Stopped); return true; @@ -70,6 +75,9 @@ Parser::possible_mtc (byte *sysex_buf, size_t msglen) void Parser::reset_mtc_state () { +#ifdef DEBUG_MTC + cerr << "MTC state reset" << endl; +#endif /* MUST REMAIN RT-SAFE */ _mtc_forward = false; @@ -213,6 +221,10 @@ Parser::process_mtc_quarter_frame (byte *msg) _mtc_running = MTC_Stopped; _mtc_locked = false; + +#ifdef DEBUG_MTC + cerr << "Skipped MTC qtr frame, return to stopped state" << endl; +#endif mtc_status (MTC_Stopped); return; |