13
0

relax zita-resampler's relative ratio

This commit is contained in:
Robin Gareus 2017-10-03 18:02:35 +02:00
parent 6e017eff22
commit d1b5a9ed3d

View File

@ -126,8 +126,14 @@ VResampler::set_rratio (double r)
{
if (!_table) return;
if (r > 16.0) r = 16.0;
#if 0 // original upstream
if (r < 0.95) r = 0.95;
_qstep = _table->_np / (_ratio * r);
#else
if (r < 0.05) r = 0.05;
_qstep = _table->_np / (_ratio * r);
if (_qstep < 4) _qstep = 4;
#endif
}
double