def blocksize(self, input_totalframes):
blocksize = input_totalframes<EOL>if self.pad:<EOL><INDENT>mod = input_totalframes % self.buffer_size<EOL>if mod:<EOL><INDENT>blocksize += self.buffer_size - mod<EOL><DEDENT><DEDENT>return blocksize<EOL>
Return the total number of frames that this adapter will output
        according to the input_totalframes argument