summaryrefslogtreecommitdiff
path: root/libs/ardour/audio_track.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-05-25 19:43:37 +0200
committerRobin Gareus <robin@gareus.org>2014-05-25 19:43:37 +0200
commit5b2da3caf70822fa71baff1c898f65567aecc7f8 (patch)
tree08fa37c8ec88045f54f4319a4c1719ae27d0b9ce /libs/ardour/audio_track.cc
parent1e3a955fc079a052e7f765374d10b9af97403530 (diff)
compensate for processor latency during bounce
Diffstat (limited to 'libs/ardour/audio_track.cc')
-rw-r--r--libs/ardour/audio_track.cc33
1 files changed, 1 insertions, 32 deletions
diff --git a/libs/ardour/audio_track.cc b/libs/ardour/audio_track.cc
index 94201882e7..61b6e56bb6 100644
--- a/libs/ardour/audio_track.cc
+++ b/libs/ardour/audio_track.cc
@@ -417,38 +417,7 @@ AudioTrack::export_stuff (BufferSet& buffers, framepos_t start, framecnt_t nfram
}
}
- // If no processing is required, there's no need to go any further.
-
- if (!endpoint && !include_endpoint) {
- return 0;
- }
-
- for (ProcessorList::iterator i = _processors.begin(); i != _processors.end(); ++i) {
-
- if (!include_endpoint && (*i) == endpoint) {
- break;
- }
-
- /* if we're not exporting, stop processing if we come across a routing processor.
- */
-
- if (!for_export && (*i)->does_routing()) {
- break;
- }
-
- /* even for export, don't run any processor that does routing.
-
- oh, and don't bother with the peak meter either.
- */
-
- if (!(*i)->does_routing() && !boost::dynamic_pointer_cast<PeakMeter>(*i)) {
- (*i)->run (buffers, start, start+nframes, nframes, true);
- }
-
- if ((*i) == endpoint) {
- break;
- }
- }
+ bounce_process (buffers, start, nframes, endpoint, include_endpoint, for_export);
return 0;
}