enough with umpteen "i18n.h" files. Consolidate on pbd/i18n.h
[ardour.git] / libs / ardour / session_process.cc
index 6f4ae531bb825c9757a35f82adcc8430d73f1e76..eaa1d055038cf48b610933f40b3ca48da356f29e 100644 (file)
@@ -43,7 +43,7 @@
 
 #include "midi++/mmc.h"
 
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace ARDOUR;
 using namespace PBD;
@@ -358,6 +358,7 @@ Session::process_with_events (pframes_t nframes)
        }
 
        if (events.empty() || next_event == events.end()) {
+               try_run_lua (nframes); // also during export ?? ->move to process_without_events()
                process_without_events (nframes);
                return;
        }
@@ -425,6 +426,8 @@ Session::process_with_events (pframes_t nframes)
                                this_nframes = abs (floor(frames_moved / _transport_speed));
                        }
 
+                       try_run_lua (this_nframes);
+
                        if (this_nframes) {
 
                                click (_transport_frame, this_nframes);