relax zita-resampler's relative ratio
authorRobin Gareus <robin@gareus.org>
Tue, 3 Oct 2017 16:02:35 +0000 (18:02 +0200)
committerRobin Gareus <robin@gareus.org>
Sat, 28 Oct 2017 13:45:08 +0000 (15:45 +0200)
libs/zita-resampler/vresampler.cc

index 2c91d2e23eebb1d7f0afc380400f0aeef676e9c2..535113de535e274118d03a1bece5a11a66df844d 100644 (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