It appears this may be all we need - apparently the occasional odd extra sample (due to incremental rounding) added up and eventually overran the filter. I believe +1 is perfectly good here, but we can afford to be more accommodating just in case

This commit is contained in:
Chris Cannam
2020-09-16 17:52:33 +01:00
parent 438893fb6f
commit 76175b9e80

View File

@@ -609,7 +609,7 @@ D_SRC::resample(const float *const R__ *const R__ in,
{
SRC_DATA data;
int outcount = lrintf(ceilf(incount * ratio));
int outcount = lrintf(ceilf(incount * ratio) + 10);
if (m_channels == 1) {
data.data_in = const_cast<float *>(*in); //!!!???