more debugging tweaks
git-svn-id: svn://localhost/ardour2/branches/3.0@6222 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
13e96a8cc7
commit
724f87a984
|
@ -286,6 +286,7 @@ MTC_Slave::speed_and_position (double& speed, nframes64_t& pos)
|
||||||
session.request_transport_speed (0);
|
session.request_transport_speed (0);
|
||||||
update_mtc_status (MIDI::Parser::MTC_Stopped);
|
update_mtc_status (MIDI::Parser::MTC_Stopped);
|
||||||
reset();
|
reset();
|
||||||
|
DEBUG_TRACE (DEBUG::MTC, "MTC not seen for 1/4 second - reset\n");
|
||||||
return false;
|
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));
|
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;
|
accumulator[accumulator_index++] = speed_now;
|
||||||
|
|
||||||
if (accumulator_index >= accumulator_size) {
|
if (accumulator_index >= accumulator_size) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user