13
0

minor panner debugging, cont'd

git-svn-id: svn://localhost/ardour2/branches/3.0@8223 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2010-12-08 21:01:20 +00:00
parent ffe783e308
commit 32ac2049fe

View 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));