def __init__(self, buffer_size, channels, pad=False):
self.buffer = numpy.empty((buffer_size, channels))<EOL>self.buffer_size = buffer_size<EOL>self.len = <NUM_LIT:0><EOL>self.pad = pad<EOL>
Construct a new adapter:
        buffer_size is the desired buffer size in frames,
        channels the number of channels, and pad indicates whether the last
        block should be padded with zeros.