show qtr MTC bytes before they are dispatched as a signal, even more

git-svn-id: svn://localhost/ardour2/branches/3.0@6225 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2009-11-30 19:11:04 +00:00
parent d1a75f494f
commit cbf900d71f

View file

@ -90,7 +90,8 @@ Parser::process_mtc_quarter_frame (byte *msg)
depending on the direction of the MTC generator ... depending on the direction of the MTC generator ...
*/ */
#if 0 #define DEBUG_MTC
#ifdef DEBUG_MTC
cerr << "MTC: (state = " << _mtc_running << ") " cerr << "MTC: (state = " << _mtc_running << ") "
<< which_quarter_frame << " vs. " << expected_mtc_quarter_frame_code << which_quarter_frame << " vs. " << expected_mtc_quarter_frame_code
<< " consecutive ? " << consecutive_qtr_frame_cnt << " consecutive ? " << consecutive_qtr_frame_cnt
@ -110,16 +111,16 @@ Parser::process_mtc_quarter_frame (byte *msg)
last_qtr_frame = which_quarter_frame; last_qtr_frame = which_quarter_frame;
consecutive_qtr_frame_cnt++; consecutive_qtr_frame_cnt++;
} }
// cerr << "first seen qframe = " << (int) last_qtr_frame << endl; cerr << "first seen qframe = " << (int) last_qtr_frame << endl;
return; return;
} else if (consecutive_qtr_frame_cnt == 1) { } else if (consecutive_qtr_frame_cnt == 1) {
/* third quarter frame */ /* third quarter frame */
// cerr << "second seen qframe = " << (int) which_quarter_frame << endl; cerr << "second seen qframe = " << (int) which_quarter_frame << endl;
if (last_qtr_frame < which_quarter_frame) { if (last_qtr_frame < which_quarter_frame) {
_mtc_running = MTC_Forward; _mtc_running = MTC_Forward;
@ -225,6 +226,8 @@ Parser::process_mtc_quarter_frame (byte *msg)
/* time code is looking good */ /* time code is looking good */
cerr << "for quarter frame " << which_quarter_frame << " byte = " << hex << (int) msg[1] << dec << endl;
switch (which_quarter_frame) { switch (which_quarter_frame) {
case 0: // frames LS nibble case 0: // frames LS nibble
_qtr_mtc_time[0] |= msg[1] & 0xf; _qtr_mtc_time[0] |= msg[1] & 0xf;