From 7f2357f94d86cf1427204a9bbb7b101cdd680ec4 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Sun, 24 Aug 2014 19:17:38 +0300 Subject: [PATCH] fix sampling without interpolation --- amodem/sampling.py | 1 + 1 file changed, 1 insertion(+) diff --git a/amodem/sampling.py b/amodem/sampling.py index 2936390..9d2f63d 100644 --- a/amodem/sampling.py +++ b/amodem/sampling.py @@ -46,6 +46,7 @@ class Sampler(object): self.take = self._take else: # skip interpolation + src = iter(src) self.take = lambda size: common.take(src, size) def _take(self, size):