diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-12-07 15:15:25 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-12-07 15:15:25 +0000 |
commit | eead73098d19743446c1d5d615e1106efe6e37a1 (patch) | |
tree | c957ae9c3985430f36117ef1ea6d764790d7f0e7 /libs/ardour/midi_track.cc | |
parent | b83f21c3cf6f9385697ce4b2ca2b0f840a8438aa (diff) |
reimplement Route::shift() from 2.X for "Insert Time"
git-svn-id: svn://localhost/ardour2/branches/3.0@8209 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/midi_track.cc')
-rw-r--r-- | libs/ardour/midi_track.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/ardour/midi_track.cc b/libs/ardour/midi_track.cc index fa406adfa0..cdd4633448 100644 --- a/libs/ardour/midi_track.cc +++ b/libs/ardour/midi_track.cc @@ -379,9 +379,11 @@ MidiTrack::roll (pframes_t nframes, framepos_t start_frame, framepos_t end_frame write_out_of_band_data (bufs, start_frame, end_frame, nframes); - process_output_buffers (bufs, start_frame, end_frame, nframes, - (!_session.get_record_enabled() || !Config->get_do_not_record_plugins()), declick); + /* final argument: don't waste time with automation if we're recording or we've just stopped (yes it can happen) */ + process_output_buffers (bufs, start_frame, end_frame, nframes, + (!_session.get_record_enabled() || !Config->get_do_not_record_plugins()), declick, + (!diskstream->record_enabled() && !_session.transport_stopped())); } _main_outs->flush_buffers (nframes, end_frame - start_frame - 1); |