fixup! add file streaming support

This commit is contained in:
Roman Zeyde
2014-07-21 12:02:50 +03:00
parent c42587d95b
commit 519325b751
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@ import common
import wave
class FileBuffer(object):
class Reader(object):
SAMPLES = 4096
BUFSIZE = int(SAMPLES * wave.bytes_per_sample)

View File

@@ -4,7 +4,7 @@ import wave
def test():
p = wave.record('-', stdout=wave.sp.PIPE)
f = stream.FileBuffer(p.stdout)
f = stream.Reader(p.stdout)
result = zip(range(10), f)
p.stop()