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