along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id$
*/
#include <iostream>
#include <ardour/timestamps.h>
#include <pbd/error.h>
+#include <pbd/enumwriter.h>
#include <pbd/stacktrace.h>
#include <ardour/ardour.h>
}
_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())) {
}
break;
};
+}
+int
+Session::set_smpte_format (SmpteFormat format)
+{
+ /* this will trigger any other changes needed */
+ Config->set_smpte_format (format);
return 0;
}
#endif
}
-nframes_t
+ARDOUR::nframes_t
Session::convert_to_frames_at (nframes_t position, AnyTime& any)
{
double secs;