diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-10-26 00:17:41 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-10-26 00:17:41 +0000 |
commit | 49b50d8e97d95eb62a458a3641f4ff1cf7b3d121 (patch) | |
tree | 28cad57f36d228d0b7a415806cbd2250a53a66d6 /libs/ardour/session_process.cc | |
parent | 974085807e8a270e9dd1bd51ad71b200524c26e0 (diff) |
clean up consequences of using IO/Port/Buffer for LTC output, and in related work, move calls to Session::ltc_tx_send_time_code_for_cycle() into Session::no_roll() to cover most cases where we "do not roll"
git-svn-id: svn://localhost/ardour2/branches/3.0@13343 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session_process.cc')
-rw-r--r-- | libs/ardour/session_process.cc | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/libs/ardour/session_process.cc b/libs/ardour/session_process.cc index 33207a3491..8719279d60 100644 --- a/libs/ardour/session_process.cc +++ b/libs/ardour/session_process.cc @@ -116,6 +116,12 @@ Session::no_roll (pframes_t nframes) _click_io->silence (nframes); } +#ifdef HAVE_LTC + if (!_engine.freewheeling()) { + 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 +354,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 +804,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; } |