From 32ac2049fe5a873853ac3c3b6dcb682150222dd3 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 8 Dec 2010 21:01:20 +0000 Subject: minor panner debugging, cont'd git-svn-id: svn://localhost/ardour2/branches/3.0@8223 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/panner.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libs/ardour/panner.cc') diff --git a/libs/ardour/panner.cc b/libs/ardour/panner.cc index c3f4d52a56..0d86bb8db1 100644 --- a/libs/ardour/panner.cc +++ b/libs/ardour/panner.cc @@ -1448,6 +1448,8 @@ Panner::set_stereo_pan (double direction_as_lr_fract, double width) int l_index = 0; int r_index = 1; + cerr << "New stereo pan pos = " << direction_as_lr_fract << " w = " << width; + assert (_streampanners.size() > 1); if (width < 0.0) { @@ -1473,6 +1475,8 @@ Panner::set_stereo_pan (double direction_as_lr_fract, double width) l_pos = max (min (l_pos, 180.0), 0.0); r_pos = max (min (r_pos, 180.0), 0.0); + cerr << " left = " << l_pos << " right = " << r_pos << " moving ? " << move_left << '/' << move_right << endl; + if (move_left && move_right) { _streampanners[l_index]->set_position (AngularVector (l_pos, 0.0)); _streampanners[r_index]->set_position (AngularVector (r_pos, 0.0)); -- cgit v1.2.3