projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e017ef
)
relax zita-resampler's relative ratio
author
Robin Gareus
<robin@gareus.org>
Tue, 3 Oct 2017 16:02:35 +0000
(18:02 +0200)
committer
Robin Gareus
<robin@gareus.org>
Sat, 28 Oct 2017 13:45:08 +0000
(15:45 +0200)
libs/zita-resampler/vresampler.cc
patch
|
blob
|
history
diff --git
a/libs/zita-resampler/vresampler.cc
b/libs/zita-resampler/vresampler.cc
index 2c91d2e23eebb1d7f0afc380400f0aeef676e9c2..535113de535e274118d03a1bece5a11a66df844d 100644
(file)
--- 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