def stop(self): if not self._playing: return self._pause_timestamp = self.get_time() context.lock() al.alSourcePause(self._al_source) context.unlock() self._playing = False context.worker.remove(self)
def stop(self): if not self._playing: return if _debug: print 'OpenALAudioPlayer.stop()' self._pause_timestamp = self.get_time() with context.lock: al.alSourcePause(self._al_source) self._playing = False context.worker.remove(self)