* radically cleaned up / refactored midi_clock_slave.cc
[ardour.git] / libs / ardour / session_time.cc
index 9ae3492ea7cb2227f1443f64187fb9af1db36c46..77b58853c7fc247bde73867e5630493727616bba 100644 (file)
@@ -158,14 +158,6 @@ Session::sync_time_vars ()
        }
        _smpte_frames_per_hour = (nframes_t)rint(smpte_frames_per_second() * 3600.0);
 
-}
-
-int
-Session::set_smpte_format (SmpteFormat format)
-{
-
-       Config->set_smpte_format (format);
-
        last_smpte_valid = false;
        // smpte type bits are the middle two in the upper nibble
        switch ((int) ceil (smpte_frames_per_second())) {
@@ -186,7 +178,13 @@ Session::set_smpte_format (SmpteFormat format)
                }
                break;
        };
+}
 
+int
+Session::set_smpte_format (SmpteFormat format)
+{
+       /* this will trigger any other changes needed */
+       Config->set_smpte_format (format);
        return 0;
 }
 
@@ -569,8 +567,8 @@ Session::jack_timebase_callback (jack_transport_state_t state,
 #endif         
 }
 
-nframes_t
-Session::convert_to_frames_at (nframes_t position, AnyTime& any)
+ARDOUR::nframes_t
+Session::convert_to_frames_at (nframes_t position, AnyTime const & any)
 {
        double secs;