less sensitive locate when master/slave delta is too big
git-svn-id: svn://localhost/ardour2/branches/3.0@6220 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
ce0757b604
commit
b03af3dc58
@ -556,9 +556,9 @@ Session::follow_slave (nframes_t nframes)
|
||||
delta *= dir;
|
||||
#endif
|
||||
|
||||
if (fabs(delta) > engine().frames_per_cycle()) {
|
||||
if (fabs(delta) > _slave->resolution() * 2) {
|
||||
/* too far off, so locate and keep rolling */
|
||||
DEBUG_TRACE (DEBUG::Slave, string_compose ("slave delta is too big, locate to %1\n", slave_transport_frame));
|
||||
DEBUG_TRACE (DEBUG::Slave, string_compose ("slave delta %1 is too big, locate to %2\n", delta, slave_transport_frame));
|
||||
request_locate (slave_transport_frame, true);
|
||||
return false;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user