summaryrefslogtreecommitdiff
path: root/libs/midi++2/mtc.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2009-12-01 13:24:08 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2009-12-01 13:24:08 +0000
commitd2426538ad8230e62cf4c8f225e6e974aea9e115 (patch)
tree19493346dd56436dfe2886c1fbea4ed43aaada93 /libs/midi++2/mtc.cc
parentea08bbe621c146a0940ce584e2b970dcb7d7c9e2 (diff)
more changes to try to improve MTC handling even in slightly pathological cases
git-svn-id: svn://localhost/ardour2/branches/3.0@6245 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/midi++2/mtc.cc')
-rw-r--r--libs/midi++2/mtc.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/midi++2/mtc.cc b/libs/midi++2/mtc.cc
index da85aa11fd..bd3205a8c1 100644
--- a/libs/midi++2/mtc.cc
+++ b/libs/midi++2/mtc.cc
@@ -226,7 +226,9 @@ Parser::process_mtc_quarter_frame (byte *msg)
/* time code is looking good */
+#ifdef DEBUG_MTC
cerr << "for quarter frame " << which_quarter_frame << " byte = " << hex << (int) msg[1] << dec << endl;
+#endif
switch (which_quarter_frame) {
case 0: // frames LS nibble
@@ -275,7 +277,7 @@ Parser::process_mtc_quarter_frame (byte *msg)
}
- mtc_qtr (*this); /* EMIT_SIGNAL */
+ mtc_qtr (*this, which_quarter_frame); /* EMIT_SIGNAL */
// mtc (*this, &msg[1], msglen - 1);