Consistent AU factory Preset IDs
[ardour.git] / libs / ardour / mtc_slave.cc
index c081de23b5ed07e785a6294d6511167be9edbeb8..f8afe66d93d6986d59a3a5a91ff2155bd4f31c26 100644 (file)
@@ -164,6 +164,16 @@ MTC_TransportMaster::parameter_changed (std::string const & p)
        }
 }
 
+ARDOUR::samplecnt_t
+MTC_TransportMaster::update_interval() const
+{
+       if (timecode.rate) {
+               return AudioEngine::instance()->sample_rate() / timecode.rate;
+       }
+
+       return AudioEngine::instance()->sample_rate(); /* useless but what other answer is there? */
+}
+
 ARDOUR::samplecnt_t
 MTC_TransportMaster::resolution () const
 {
@@ -287,6 +297,8 @@ MTC_TransportMaster::update_mtc_qtr (Parser& p, int which_qtr, samplepos_t now)
                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, now, mtc_speed);
+
+               last_inbound_frame = now;
        }
 
        maybe_reset ();