13
0

more debugging output

git-svn-id: svn://localhost/ardour2/branches/3.0@13578 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2012-11-30 23:28:47 +00:00
parent 6242371388
commit 202788ea18

View File

@ -232,13 +232,19 @@ Curve::_get_vector (double x0, double x1, float *vec, int32_t veclen)
double frac = (min_x - x0) / (x1 - x0);
int64_t subveclen = (int64_t) floor (veclen * frac);
cerr << "subveclen = " << subveclen << endl;
subveclen = min (subveclen, (int64_t)veclen);
cerr << "subveclen2 = " << subveclen << endl;
for (i = 0; i < subveclen; ++i) {
vec[i] = _list.events().front()->value;
}
cerr << "adjust veclen from " << veclen << " to ";
veclen -= subveclen;
cerr << veclen << endl;
vec += subveclen;
}
@ -254,8 +260,10 @@ Curve::_get_vector (double x0, double x1, float *vec, int32_t veclen)
float val;
cerr << "subveclen3 = " << subveclen << endl;
subveclen = min (subveclen, (int64_t)veclen);
cerr << "subveclen4 = " << subveclen << endl;
val = _list.events().back()->value;
i = veclen - subveclen;
@ -264,7 +272,9 @@ Curve::_get_vector (double x0, double x1, float *vec, int32_t veclen)
vec[i] = val;
}
cerr << "adjust veclen2 from " << veclen << " to ";
veclen -= subveclen;
cerr << veclen << endl;
}
cerr << "Check5: veclen = " << veclen << endl;