python/lib/aubio/cmd.py: use frames_read in flush
authorPaul Brossier <piem@piem.org>
Tue, 12 Sep 2017 15:11:14 +0000 (17:11 +0200)
committerPaul Brossier <piem@piem.org>
Tue, 12 Sep 2017 15:11:14 +0000 (17:11 +0200)
python/lib/aubio/cmd.py

index 5d4ebc1..5b57f58 100644 (file)
@@ -232,7 +232,7 @@ class default_process(object):
             name = type(self).__name__.split('_')[1]
             optstr = ' '.join(['running', name, 'with options', repr(self.options), '\n'])
             sys.stderr.write(optstr)
             name = type(self).__name__.split('_')[1]
             optstr = ' '.join(['running', name, 'with options', repr(self.options), '\n'])
             sys.stderr.write(optstr)
-    def flush(self, n_frames, samplerate):
+    def flush(self, frames_read, samplerate):
         # optionally called at the end of process
         pass
 
         # optionally called at the end of process
         pass