From 7939dd9399e8e86b579bbddeba73d997ec6cf1b7 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 14 Apr 2010 23:58:07 +0000 Subject: [PATCH] Don't run meters either during freeze. git-svn-id: svn://localhost/ardour2/branches/3.0@6904 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/audio_track.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libs/ardour/audio_track.cc b/libs/ardour/audio_track.cc index 07930c49e6..4cf50d0f0b 100644 --- a/libs/ardour/audio_track.cc +++ b/libs/ardour/audio_track.cc @@ -45,6 +45,7 @@ #include "ardour/utils.h" #include "ardour/session_playlists.h" #include "ardour/delivery.h" +#include "ardour/meter.h" #include "i18n.h" using namespace std; @@ -595,14 +596,16 @@ 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. + Also, don't run deliveries that write to real output ports, and don't + run meters. */ 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); + boost::shared_ptr meter = boost::dynamic_pointer_cast (*i); - if (processor && (!delivery || !Delivery::role_requires_output_ports (delivery->role()))) { + if (processor && (!delivery || !Delivery::role_requires_output_ports (delivery->role())) && !meter) { processor->run (buffers, start, start+nframes, nframes, true); } }