summaryrefslogtreecommitdiff
path: root/libs/zita-resampler
diff options
context:
space:
mode:
Diffstat (limited to 'libs/zita-resampler')
-rw-r--r--libs/zita-resampler/vresampler.cc6
1 files changed, 6 insertions, 0 deletions
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