diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-03-17 15:10:53 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-03-17 15:10:53 +0000 |
commit | 22b3c2de96e561471fe615241f0d2f6d2774abc0 (patch) | |
tree | e6474599a1db0ec11f0ec9b9270805bb0f46e473 /libs/ardour/session_process.cc | |
parent | 94d0bad82f230efe333061412dec55e8d04b3446 (diff) |
more rational handling of silence when (a) running freeze/export/bounce (b) during sync start
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4864 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session_process.cc')
-rw-r--r-- | libs/ardour/session_process.cc | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/libs/ardour/session_process.cc b/libs/ardour/session_process.cc index 99615a08b3..31cf3a930d 100644 --- a/libs/ardour/session_process.cc +++ b/libs/ardour/session_process.cc @@ -47,12 +47,17 @@ Session::process (nframes_t nframes) { _silent = false; + if (processing_blocked()) { + _silent = true; + return; + } + if (non_realtime_work_pending()) { if (!transport_work_requested ()) { post_transport (); } } - + (this->*process_function) (nframes); { @@ -82,13 +87,6 @@ Session::no_roll (nframes_t nframes, nframes_t offset) _click_io->silence (nframes, offset); } - if (g_atomic_int_get (&processing_prohibited)) { - for (RouteList::iterator i = r->begin(); i != r->end(); ++i) { - (*i)->silence (nframes, offset); - } - return 0; - } - for (RouteList::iterator i = r->begin(); i != r->end(); ++i) { if ((*i)->hidden()) { @@ -866,9 +864,7 @@ Session::maybe_sync_start (nframes_t& nframes, nframes_t& offset) with any fancy stuff here, just the minimal silence. */ - g_atomic_int_inc (&processing_prohibited); - no_roll (nframes, 0); - g_atomic_int_dec_and_test (&processing_prohibited); + _silent = true; if (Config->get_locate_while_waiting_for_sync()) { if (micro_locate (nframes)) { |