diff options
author | David Robillard <d@drobilla.net> | 2008-01-13 00:27:13 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-01-13 00:27:13 +0000 |
commit | c78c44ccd7bb5ce4903385b1c18613160fbb61bf (patch) | |
tree | 28b1386f39ba3d665f186f05e3c33771c0fc4ba5 /libs/ardour/audioengine.cc | |
parent | e92c1669c1cdf857b8a3900abb9f891e6ca9fdad (diff) |
Fix MIDI playback.
git-svn-id: svn://localhost/ardour2/trunk@2905 d708f5d6-7413-0410-9779-e7cbd77b26cf
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(); |