minor panner debugging, cont'd
authorPaul Davis <paul@linuxaudiosystems.com>
Wed, 8 Dec 2010 21:01:20 +0000 (21:01 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Wed, 8 Dec 2010 21:01:20 +0000 (21:01 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@8223 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/panner.cc

index c3f4d52a5678d73a3c0b738921d6afed2a1b99f7..0d86bb8db131e46b665ece1af425220172a7fa6c 100644 (file)
@@ -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));