def get_write_size(self):
        self._lock.acquire()
        self._update_play_cursor()
        write_size = self._ideal_buffer_size - \
            (self._write_cursor - self._play_cursor)
        if self._eos:
            write_size = 0
        self._lock.release()

        return write_size
dataset/ETHPy150Open ardekantur/pyglet/experimental/mt_media/drivers/openal/__init__.py/OpenALAudioPlayer.get_write_size/original