Fix MTC delta report
This amends a6ffc6213b
.
apply the offset before the DLL.
This commit is contained in:
parent
feaf87d200
commit
ba1a60873a
@ -318,7 +318,7 @@ MTC_TransportMaster::update_mtc_qtr (Parser& p, int which_qtr, samplepos_t now)
|
|||||||
mtc_speed = (t1 - t0) / qtr_d;
|
mtc_speed = (t1 - t0) / qtr_d;
|
||||||
DEBUG_TRACE (DEBUG::MTC, string_compose ("qtr sample DLL t0:%1 t1:%2 err:%3 spd:%4 ddt:%5\n", t0, t1, e, mtc_speed, e2 - qtr_d));
|
DEBUG_TRACE (DEBUG::MTC, string_compose ("qtr sample DLL t0:%1 t1:%2 err:%3 spd:%4 ddt:%5\n", t0, t1, e, mtc_speed, e2 - qtr_d));
|
||||||
|
|
||||||
current.update (mtc_frame + mtc_slave_latency.max, now, mtc_speed);
|
current.update (mtc_frame, now, mtc_speed);
|
||||||
|
|
||||||
last_inbound_frame = now;
|
last_inbound_frame = now;
|
||||||
}
|
}
|
||||||
@ -502,9 +502,9 @@ MTC_TransportMaster::update_mtc_time (const MIDI::byte *msg, bool was_full, samp
|
|||||||
if (first_mtc_timestamp == 0 || current.timestamp == 0) {
|
if (first_mtc_timestamp == 0 || current.timestamp == 0) {
|
||||||
first_mtc_timestamp = now;
|
first_mtc_timestamp = now;
|
||||||
init_mtc_dll(mtc_frame, qtr);
|
init_mtc_dll(mtc_frame, qtr);
|
||||||
mtc_frame_dll = mtc_frame;
|
mtc_frame_dll = mtc_frame + mtc_slave_latency.max;
|
||||||
}
|
}
|
||||||
current.update (mtc_frame, now, current.speed);
|
current.update (mtc_frame + mtc_slave_latency.max, now, current.speed);
|
||||||
reset_window (mtc_frame);
|
reset_window (mtc_frame);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user