summaryrefslogtreecommitdiff
path: root/libs/zita-resampler
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-10-03 18:02:35 +0200
committerRobin Gareus <robin@gareus.org>2017-10-28 15:45:08 +0200
commitd1b5a9ed3deb3045971bd16f6613ef328e49b7e8 (patch)
tree2051eb58279590159b857da49876168549bc79ec /libs/zita-resampler
parent6e017eff224209935eed67ade6f60c504cb0a01c (diff)
relax zita-resampler's relative ratio
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