Example #1
0
    def clear(self):
        if _debug:
            print 'clear'

        self._clear_write = True
        self._write_index = self._get_read_index()
        self._timestamps = []
        self._events = []

        with context.lock:
            self._read_index_valid = False
            context.sync_operation(
                pa.pa_stream_prebuf(self.stream, self._success_cb_func, None))
Example #2
0
    def clear(self):
        if _debug:
            print "clear"

        self._clear_write = True
        self._write_index = self._get_read_index()
        self._timestamps = []
        self._events = []

        context.lock()
        self._read_index_valid = False
        context.sync_operation(pa.pa_stream_prebuf(self.stream, self._success_cb_func, None))
        context.unlock()