diff --git a/libs/ardour/audio_track.cc b/libs/ardour/audio_track.cc index 7a26e300b9..07930c49e6 100644 --- a/libs/ardour/audio_track.cc +++ b/libs/ardour/audio_track.cc @@ -44,6 +44,7 @@ #include "ardour/session.h" #include "ardour/utils.h" #include "ardour/session_playlists.h" +#include "ardour/delivery.h" #include "i18n.h" using namespace std; @@ -556,7 +557,6 @@ AudioTrack::export_stuff (BufferSet& buffers, sframes_t start, nframes_t nframes { boost::scoped_array gain_buffer (new gain_t[nframes]); boost::scoped_array mix_buffer (new float[nframes]); - ProcessorList::iterator i; boost::shared_ptr diskstream = audio_diskstream(); Glib::RWLock::ReaderLock rlock (_processor_lock); @@ -595,11 +595,14 @@ AudioTrack::export_stuff (BufferSet& buffers, sframes_t start, nframes_t nframes /* note: only run processors during export. other layers in the machinery will already have checked that there are no external port processors. + Also, don't run deliveries that write to real output ports. */ - for (i = _processors.begin(); i != _processors.end(); ++i) { - boost::shared_ptr processor; - if ((processor = boost::dynamic_pointer_cast(*i)) != 0) { + for (ProcessorList::iterator i = _processors.begin(); i != _processors.end(); ++i) { + boost::shared_ptr processor = boost::dynamic_pointer_cast (*i); + boost::shared_ptr delivery = boost::dynamic_pointer_cast (*i); + + if (processor && (!delivery || !Delivery::role_requires_output_ports (delivery->role()))) { processor->run (buffers, start, start+nframes, nframes, true); } }