From d1b5a9ed3deb3045971bd16f6613ef328e49b7e8 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 3 Oct 2017 18:02:35 +0200 Subject: relax zita-resampler's relative ratio --- libs/zita-resampler/vresampler.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libs/zita-resampler/vresampler.cc b/libs/zita-resampler/vresampler.cc index 2c91d2e23e..535113de53 100644 --- a/libs/zita-resampler/vresampler.cc +++ b/libs/zita-resampler/vresampler.cc @@ -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 -- cgit v1.2.3