def blocksize():
"""The total number of frames that this processor can output for each step
- in the pipeline, or None if the duration is unknown."""
+ in the pipeline, or None if the number is unknown."""
def totalframes():
- """The total number of frames that this processor can output, or None if
- the duration is unknown."""
+ """The total number of frames that this processor will output, or None if
+ the number is unknown."""
def process(self, frames=None, eod=False):
"""Process input frames and return a (output_frames, eod) tuple.
return blocksize
-
def totalframes(self, input_totalframes):
"""Return the total number of frames that this adapter will output according to the
input_blocksize argument"""
- totalframes = input_totalframes
- if self.pad:
- mod = input_totalframes % self.buffer_size
- if mod:
- totalframes += self.buffer_size - mod
-
- return totalframes
+ return input_totalframes
def process(self, frames, eod):
"""Returns an iterator over tuples of the form (buffer, eod) where buffer is a