LTC generator checks itself if to send LTC or not.
[ardour.git] / libs / ardour / session_process.cc
index 33207a34910ac4451f7a06e1227d023568fa4376..bd5cc664512b823b0fd597e538982bd05f4c4fe9 100644 (file)
@@ -116,6 +116,10 @@ Session::no_roll (pframes_t nframes)
                _click_io->silence (nframes);
        }
 
+#ifdef HAVE_LTC
+       ltc_tx_send_time_code_for_cycle (_transport_frame, end_frame, _target_transport_speed, _transport_speed, nframes);
+#endif
+
        if (_process_graph) {
                DEBUG_TRACE(DEBUG::ProcessThreads,"calling graph/no-roll\n");
                _process_graph->routes_no_roll( nframes, _transport_frame, end_frame, non_realtime_work_pending(), declick);
@@ -348,10 +352,6 @@ Session::process_with_events (pframes_t nframes)
 
        end_frame = _transport_frame + frames_moved;
 
-#ifdef HAVE_LTC
-       ltc_tx_send_time_code_for_cycle (_transport_frame, end_frame, _target_transport_speed, _transport_speed, nframes);
-#endif
-
        {
                SessionEvent* this_event;
                Events::iterator the_next_one;
@@ -802,11 +802,6 @@ Session::process_without_events (pframes_t nframes)
 
        if (_transport_speed == 0) {
                fail_roll (nframes);
-#ifdef HAVE_LTC
-               if (!_exporting) {
-                       ltc_tx_send_time_code_for_cycle (_transport_frame, _transport_frame, 0, 0 , nframes);
-               }
-#endif
                return;
        }
 
@@ -823,9 +818,7 @@ Session::process_without_events (pframes_t nframes)
        }
 
 #ifdef HAVE_LTC
-       if (!_exporting) {
-               ltc_tx_send_time_code_for_cycle (_transport_frame, _transport_frame + frames_moved, _target_transport_speed, _transport_speed, nframes);
-       }
+       ltc_tx_send_time_code_for_cycle (_transport_frame, _transport_frame + frames_moved, _target_transport_speed, _transport_speed, nframes);
 #endif
 
        framepos_t const stop_limit = compute_stop_limit ();