From 6103035594178e87c8dc6d60059f84f17a0671d2 Mon Sep 17 00:00:00 2001 From: YPozdnyakov Date: Mon, 16 Feb 2015 15:15:10 +0200 Subject: [PATCH] =?UTF-8?q?[Summary]:=20Switching=20from=20Multi-Out=20mod?= =?UTF-8?q?e=20to=20Stereo-out=20shouldn=E2=80=99t=20reset=20panner's=20va?= =?UTF-8?q?lue=20in=20the=20new=20created=20tracks.=20Profile->get=5Ftrx?= =?UTF-8?q?=20()=20was=20used.=20[Reviewed=20by=20GZharun]=20[Not=20Review?= =?UTF-8?q?ed=20by=20Paul=20Davis].?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/panners/1in2out/panner_1in2out.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/panners/1in2out/panner_1in2out.cc b/libs/panners/1in2out/panner_1in2out.cc index 2d5489f0ce..50c058b160 100644 --- a/libs/panners/1in2out/panner_1in2out.cc +++ b/libs/panners/1in2out/panner_1in2out.cc @@ -51,6 +51,7 @@ #include "ardour/buffer_set.h" #include "ardour/audio_buffer.h" #include "ardour/pannable.h" +#include "ardour/profile.h" #include "i18n.h" #include "panner_1in2out.h" @@ -75,8 +76,10 @@ extern "C" ARDOURPANNER_API PanPluginDescriptor* panner_descriptor () { return Panner1in2out::Panner1in2out (boost::shared_ptr p) : Panner (p) { - if (!_pannable->has_state()) { + if (!Profile->get_trx () ) { + if (!_pannable->has_state ()) { _pannable->pan_azimuth_control->set_value (0.5); + } } update ();