From: Paul Brossier Date: Tue, 3 Dec 2013 17:24:34 +0000 (-0500) Subject: timeside/core.py: ProcessPipe.run(), pass channels, samplerate and blocksize to sourc... X-Git-Tag: 0.5.2~8^2~7 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=78c847eeda9733fceacebf348f20a67bc561ac4a;p=timeside.git timeside/core.py: ProcessPipe.run(), pass channels, samplerate and blocksize to source.setup() --- diff --git a/timeside/core.py b/timeside/core.py index 6cb0131..b937de6 100644 --- a/timeside/core.py +++ b/timeside/core.py @@ -277,13 +277,13 @@ class ProcessPipe(object): pipe += ' | ' return pipe - def run(self): + def run(self, channels = None, samplerate = None, blocksize = None): """Setup/reset all processors in cascade and stream audio data along the pipe. Also returns the pipe itself.""" source = self.processors[0] items = self.processors[1:] - source.setup() + source.setup(channels = channels, samplerate = samplerate, blocksize = blocksize) last = source @@ -307,4 +307,4 @@ class ProcessPipe(object): item.post_process() for item in items: - item.release() \ No newline at end of file + item.release()