13
0

more debugging tweaks

git-svn-id: svn://localhost/ardour2/branches/3.0@6222 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2009-11-30 18:32:59 +00:00
parent 13e96a8cc7
commit 724f87a984

View File

@ -286,6 +286,7 @@ MTC_Slave::speed_and_position (double& speed, nframes64_t& pos)
session.request_transport_speed (0);
update_mtc_status (MIDI::Parser::MTC_Stopped);
reset();
DEBUG_TRACE (DEBUG::MTC, "MTC not seen for 1/4 second - reset\n");
return false;
}
@ -293,6 +294,10 @@ MTC_Slave::speed_and_position (double& speed, nframes64_t& pos)
speed_now = (double) ((last.position - first_mtc_frame) / (double) (now - first_mtc_time));
DEBUG_TRACE (DEBUG::MTC, string_compose ("apparent speed = %1 from last %2 now %3 first %4\n",
speed_now, last.position, now, first_mtc_time));
accumulator[accumulator_index++] = speed_now;
if (accumulator_index >= accumulator_size) {