- ltc_speed = double (ltc_sample - last_ltc_sample) / double (cur_timestamp - last_timestamp);
- DEBUG_TRACE (DEBUG::LTC, string_compose ("LTC speed: %1\n", ltc_speed));
- }
-
- if (fabs (ltc_speed) > 10.0) {
- ltc_speed = 0;
- }
-
- last_timestamp = cur_timestamp;
- last_ltc_sample = ltc_sample;
-
- } /* end foreach decoded LTC sample */
-}
-
-bool
-LTC_TransportMaster::speed_and_position (double& speed, samplepos_t& pos, samplepos_t now)
-{
- if (!_collect || last_timestamp == 0) {
- return false;
- }
-
- /* XXX these are not atomics and maybe modified in a thread other other than the one
- that is executing this.
- */
-
- speed = ltc_speed;