From 48de21b1201fdf828c32ab396ac75dc884a96d90 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 14 Jul 2011 22:17:43 +0000 Subject: Move panner bypass state up to the PannerShell so that it is preserved even when new Panners are dropped in (refixes #4185). git-svn-id: svn://localhost/ardour2/branches/3.0@9877 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/delivery.cc | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'libs/ardour/delivery.cc') diff --git a/libs/ardour/delivery.cc b/libs/ardour/delivery.cc index 4a6b761f33..e7d435bacf 100644 --- a/libs/ardour/delivery.cc +++ b/libs/ardour/delivery.cc @@ -233,8 +233,6 @@ Delivery::configure_io (ChanCount in, ChanCount out) void Delivery::run (BufferSet& bufs, framepos_t start_frame, framepos_t end_frame, pframes_t nframes, bool result_required) { - boost::shared_ptr panner; - assert (_output); PortSet& ports (_output->ports()); @@ -287,10 +285,6 @@ Delivery::run (BufferSet& bufs, framepos_t start_frame, framepos_t end_frame, pf Amp::apply_simple_gain (bufs, nframes, tgain); } - if (_panshell) { - panner = _panshell->panner(); - } - #if 0 if (_session.transport_rolling()) { cerr << name() << " first value written : " << scnt << endl; @@ -306,7 +300,7 @@ Delivery::run (BufferSet& bufs, framepos_t start_frame, framepos_t end_frame, pf } #endif - if (panner && !panner->bypassed()) { + if (_panshell && !_panshell->bypassed()) { // Use the panner to distribute audio to output port buffers @@ -350,7 +344,7 @@ Delivery::state (bool full_state) node.add_property("role", enum_2_string(_role)); if (_panshell) { - node.add_child_nocopy (_panshell->state (full_state)); + node.add_child_nocopy (_panshell->get_state ()); } return node; -- cgit v1.2.3