fix prefix size, for identity interpolation at integer offsets

This commit is contained in:
Roman Zeyde
2014-07-05 12:28:22 +03:00
parent 1534e13bd6
commit 24ed672cf9

View File

@@ -26,7 +26,7 @@ class FreqLoop(object):
if prefix is None:
prefix = []
else:
prefix = [prefix] * interp.width
prefix = [prefix] * (interp.width - 1)
src = itertools.chain(prefix, x)
self.sampler = sampling.Sampler(src, interp)