diff options
author | YPozdnyakov <YPozdnyakov@wavesglobal.com> | 2015-02-16 15:15:10 +0200 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-06-29 14:16:42 -0400 |
commit | 6103035594178e87c8dc6d60059f84f17a0671d2 (patch) | |
tree | 66d9ec6d3048fcd63de2919b185ff2c36b7cbf93 /libs/panners | |
parent | 100d324e7abd39444ef5e214001bc5ce95e8d8f3 (diff) |
[Summary]: Switching from Multi-Out mode to Stereo-out shouldn’t reset panner's value in the new created tracks. Profile->get_trx () was used. [Reviewed by GZharun] [Not Reviewed by Paul Davis].
Diffstat (limited to 'libs/panners')
-rw-r--r-- | libs/panners/1in2out/panner_1in2out.cc | 5 |
1 files changed, 4 insertions, 1 deletions
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<Pannable> p) : Panner (p) { - if (!_pannable->has_state()) { + if (!Profile->get_trx () ) { + if (!_pannable->has_state ()) { _pannable->pan_azimuth_control->set_value (0.5); + } } update (); |