diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-12-01 13:24:08 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-12-01 13:24:08 +0000 |
commit | d2426538ad8230e62cf4c8f225e6e974aea9e115 (patch) | |
tree | 19493346dd56436dfe2886c1fbea4ed43aaada93 /libs/midi++2 | |
parent | ea08bbe621c146a0940ce584e2b970dcb7d7c9e2 (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')
-rw-r--r-- | libs/midi++2/midi++/parser.h | 4 | ||||
-rw-r--r-- | libs/midi++2/mtc.cc | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/libs/midi++2/midi++/parser.h b/libs/midi++2/midi++/parser.h index 5baa3af4b6..ea89076225 100644 --- a/libs/midi++2/midi++/parser.h +++ b/libs/midi++2/midi++/parser.h @@ -74,8 +74,8 @@ class Parser : public sigc::trackable { Signal position; Signal song; - Signal mtc; - sigc::signal<void,Parser&> mtc_qtr; + Signal mtc; + sigc::signal<void,Parser&,int> mtc_qtr; sigc::signal<void, Parser &> all_notes_off; sigc::signal<void, Parser &> tune; 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); |