예제 #1
0
    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]
예제 #2
0
    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()
예제 #3
0
    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
                ]
예제 #4
0
파일: __init__.py 프로젝트: wwoods/ramfull
    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()
예제 #5
0
    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()