def __init__(self, rate, chunk):
    self._rate = rate
    self._chunk = chunk
    self._buff = Queue()
    self.closed = True
def __init__(self, rate, chunk):
    self._rate = rate
    self._chunk = chunk
    self._buff = Queue()
    self.closed = True