allow Lua session scripts to inject [immediate] RT-events
[ardour.git] / libs / ardour / session_time.cc
index 54770d5cc8a16b5f4e64ef757a7de6980166e56a..3b3be8f3b224e60a2dabc3d052b537e5ef5c896d 100644 (file)
@@ -35,7 +35,7 @@
 #include "ardour/session.h"
 #include "ardour/tempo.h"
 
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace std;
 using namespace ARDOUR;
@@ -67,11 +67,11 @@ void
 Session::sync_time_vars ()
 {
        _current_frame_rate = (framecnt_t) round (_nominal_frame_rate * (1.0 + (config.get_video_pullup()/100.0)));
-       _frames_per_timecode_frame = (double) _current_frame_rate / (double) timecode_frames_per_second();
+       _samples_per_timecode_frame = (double) _current_frame_rate / (double) timecode_frames_per_second();
        if (timecode_drop_frames()) {
-         _frames_per_hour = (int32_t)(107892 * _frames_per_timecode_frame);
+         _frames_per_hour = (int32_t)(107892 * _samples_per_timecode_frame);
        } else {
-         _frames_per_hour = (int32_t)(3600 * rint(timecode_frames_per_second()) * _frames_per_timecode_frame);
+         _frames_per_hour = (int32_t)(3600 * rint(timecode_frames_per_second()) * _samples_per_timecode_frame);
        }
        _timecode_frames_per_hour = rint(timecode_frames_per_second() * 3600.0);