diff options
Diffstat (limited to 'libs/ardour/audioengine.cc')
-rw-r--r-- | libs/ardour/audioengine.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/ardour/audioengine.cc b/libs/ardour/audioengine.cc index 08d18c7cab..8ec97debd4 100644 --- a/libs/ardour/audioengine.cc +++ b/libs/ardour/audioengine.cc @@ -337,11 +337,6 @@ AudioEngine::process_callback (nframes_t nframes) if (session) { session->process (nframes); } - - if (!_running) { - _processed_frames = next_processed_frames; - return 0; - } // Finalize ports (ie write data if necessary) @@ -349,6 +344,11 @@ AudioEngine::process_callback (nframes_t nframes) (*i)->cycle_end (nframes, 0); } + if (!_running) { + _processed_frames = next_processed_frames; + return 0; + } + if (last_monitor_check + monitor_check_interval < next_processed_frames) { boost::shared_ptr<Ports> p = ports.reader(); |