def clear(self): if _debug: print 'OpenALAudioPlayer.clear()' with self._lock: with context.lock: al.alSourceStop(self._al_source) self._playing = False del self._events[:] self._underrun_timestamp = None self._buffer_timestamps = [None for _ in self._buffer_timestamps]
def clear(self): self._lock.acquire() context.lock() al.alSourceStop(self._al_source) self._playing = False del self._events[:] self._underrun_timestamp = None self._buffer_timestamps = [None for _ in self._buffer_timestamps] context.unlock() self._lock.release()
def clear(self): if _debug: print 'OpenALAudioPlayer.clear()' with self._lock: with context.lock: al.alSourceStop(self._al_source) self._playing = False del self._events[:] self._underrun_timestamp = None self._buffer_timestamps = [ None for _ in self._buffer_timestamps ]
def clear(self): if _debug: print 'OpenALAudioPlayer.clear()' self._lock.acquire() context.lock() al.alSourceStop(self._al_source) self._playing = False del self._events[:] self._underrun_timestamp = None self._buffer_timestamps = [None for _ in self._buffer_timestamps] context.unlock() self._lock.release()