def check_buffer(self): if len(self._buffer) > self._buffer_limit: self.send(py_ilbc.decode(self.mode, self._buffer[:self._buffer_limit])) self._buffer = self._buffer[self._buffer_limit:] self.check_buffer()
def finish(self): if self.finish_passes_partials: self.send(py_ilbc.decode(self.mode, self._buffer)) self.finish_connected()
def ilbc_decoder(data): return py_ilbc.decode(20, data)