def stop(self):
        if _debug:
            print 'SilentAudioPlayer.stop'

        self._thread.condition.acquire()
        if self._playing:
            timestamp = self.get_time()
            if self._packets:
                packet = self._packets[0]
                self._packets_duration -= timestamp - packet.timestamp
                packet.consume(packet.timestamp - timestamp)
            self._playing = False
        self._thread.condition.release()
dataset/ETHPy150Open ardekantur/pyglet/pyglet/media/drivers/silent.py/SilentAudioPlayerPacketConsumer.stop/swapped operands of `-`