diff options
author | Robin Gareus <robin@gareus.org> | 2013-07-25 10:53:11 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2013-07-25 10:53:11 +0200 |
commit | 132549c48a65271dfd81a3f550305e3990caed9f (patch) | |
tree | e6d7033adbb26981b44f37c6e41243df5122c436 /libs/ardour/track.cc | |
parent | 3c33ff26335f9fdd6ea327cf5829345c3d4bbdc5 (diff) |
reset meters only when *really* necessary
..and continue to calculate fall-off in
audio-cycle (rather than UI thread)
TODO: check if this works properly when switching
between audio/midi meter modes on a midi-track.
One of the motivations to always reset meters when the
meter-point changes was to resolve peak-hold & fall-off
issues when a midi-meter replaces an audio-meter and vice
versa.
Diffstat (limited to 'libs/ardour/track.cc')
-rw-r--r-- | libs/ardour/track.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/ardour/track.cc b/libs/ardour/track.cc index c6a348ddfb..5dfc956c75 100644 --- a/libs/ardour/track.cc +++ b/libs/ardour/track.cc @@ -436,7 +436,8 @@ Track::no_roll (pframes_t nframes, framepos_t start_frame, framepos_t end_frame, } if (no_meter) { - _meter->reset(); + BufferSet& bufs (_session.get_silent_buffers (n_process_buffers())); + _meter->run (bufs, 0, 0, nframes, true); _input->process_input (boost::shared_ptr<Processor>(), start_frame, end_frame, nframes); } else { _input->process_input (_meter, start_frame, end_frame, nframes); |