def METHOD_NAME(self, chunk):
    assert (len(chunk) == PERIOD)
    # alsa expects bytes, so we need to repack the list of floats into a
    # bytes sequence
    buff = b''.join([struct.pack("<f", x) for x in chunk])
    self.pcm.write(buff)