diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-02-07 17:21:11 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-02-07 17:21:11 +0000 |
commit | 4e40ac9358e249f465838ba4148a583707ef1509 (patch) | |
tree | 3b6b3211bd626bd76e2a99016961e534e69f3d37 /libs/panners | |
parent | a9d331aa980cde9464ddd1113a7a29447f52768e (diff) |
make reversed width for the 2in/2out panner actually do something
git-svn-id: svn://localhost/ardour2/branches/3.0@8744 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/panners')
-rw-r--r-- | libs/panners/2in2out/panner_2in2out.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/panners/2in2out/panner_2in2out.cc b/libs/panners/2in2out/panner_2in2out.cc index 30d971d118..f5ed858da2 100644 --- a/libs/panners/2in2out/panner_2in2out.cc +++ b/libs/panners/2in2out/panner_2in2out.cc @@ -138,10 +138,11 @@ Panner2in2out::update () */ float pos[2]; - const double width = _pannable->pan_width_control->get_value(); + double width = _pannable->pan_width_control->get_value(); const double direction_as_lr_fract = _pannable->pan_azimuth_control->get_value(); if (width < 0.0) { + width = fabs (width); pos[0] = direction_as_lr_fract + (width/2.0); // left signal lr_fract pos[1] = direction_as_lr_fract - (width/2.0); // right signal lr_fract } else { |