more MTC debugging
git-svn-id: svn://localhost/ardour2/branches/3.0@6568 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
1489729ff0
commit
7d96960b16
@ -537,16 +537,17 @@ MTC_Slave::reset_window (nframes64_t root)
|
|||||||
|
|
||||||
switch (port->input()->mtc_running()) {
|
switch (port->input()->mtc_running()) {
|
||||||
case MTC_Forward:
|
case MTC_Forward:
|
||||||
|
DEBUG_TRACE (DEBUG::MTC, "set MTC window while running forward\n");
|
||||||
window_begin = root;
|
window_begin = root;
|
||||||
if (session.slave_state() == Session::Running) {
|
if (session.slave_state() == Session::Running) {
|
||||||
window_end = root + (session.frames_per_timecode_frame() * frame_tolerance);
|
window_end = root + (session.frames_per_timecode_frame() * frame_tolerance);
|
||||||
} else {
|
} else {
|
||||||
window_end = root + seekahead_distance ();
|
window_end = root + seekahead_distance ();
|
||||||
}
|
}
|
||||||
DEBUG_TRACE (DEBUG::MTC, string_compose ("legal MTC window now %1 .. %2\n", window_begin, window_end));
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MTC_Backward:
|
case MTC_Backward:
|
||||||
|
DEBUG_TRACE (DEBUG::MTC, "set MTC window while running backward\n");
|
||||||
if (session.slave_state() == Session::Running) {
|
if (session.slave_state() == Session::Running) {
|
||||||
nframes_t d = session.frames_per_timecode_frame() * frame_tolerance;
|
nframes_t d = session.frames_per_timecode_frame() * frame_tolerance;
|
||||||
if (root > d) {
|
if (root > d) {
|
||||||
@ -564,13 +565,15 @@ MTC_Slave::reset_window (nframes64_t root)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
window_end = root;
|
window_end = root;
|
||||||
DEBUG_TRACE (DEBUG::MTC, string_compose ("legal MTC window now %1 .. %2\n", window_begin, window_end));
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
DEBUG_TRACE (DEBUG::MTC, "not touching MTC window - MTC_Stopped\n");
|
||||||
/* do nothing */
|
/* do nothing */
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DEBUG_TRACE (DEBUG::MTC, string_compose ("legal MTC window now %1 .. %2\n", window_begin, window_end));
|
||||||
}
|
}
|
||||||
|
|
||||||
nframes64_t
|
nframes64_t
|
||||||
|
Loading…
Reference in New Issue
Block a user