Beispiel #1
0
 def _delete(self):
     if _debug:
         print('_delete')
     driver_listener.lock()
     pa.pa_stream_disconnect(self.stream)
     driver_listener.unlock()
     pa.pa_stream_unref(self.stream)
     self.stream = None
Beispiel #2
0
 def _delete(self):
     if _debug:
         print('_delete')
     driver_listener.lock()
     pa.pa_stream_disconnect(self.stream)
     driver_listener.unlock()
     pa.pa_stream_unref(self.stream)
     self.stream = None
Beispiel #3
0
    def delete(self):   
        if _debug:
            print 'delete'
        if not self.stream:
            return

        context.lock()
        pa.pa_stream_disconnect(self.stream)
        context.unlock()
        pa.pa_stream_unref(self.stream)
        self.stream = None
    def delete(self):
        if _debug:
            print 'delete'
        if not self.stream:
            return

        context.lock()
        pa.pa_stream_disconnect(self.stream)
        context.unlock()
        pa.pa_stream_unref(self.stream)
        self.stream = None
Beispiel #5
0
    def delete(self):   
        if _debug:
            print 'delete'
        if not self.stream:
            return

        context.lock()
        pa.pa_stream_disconnect(self.stream)
        pa.pa_stream_set_state_callback(self.stream, pa.pa_stream_notify_cb_t(noop), None)
        context.unlock()
        pa.pa_stream_unref(self.stream)
        self.stream = None
Beispiel #6
0
    def delete(self):
        if _debug:
            print 'delete'
        if not self.stream:
            return

        with context.lock:
            pa.pa_stream_disconnect(self.stream)

        # Wait for stream to terminate before continuing. Prevents cleaned up callbacks to be
        # called
        while pa.pa_stream_get_state(self.stream) != pa.PA_STREAM_TERMINATED:
            context.wait()

        pa.pa_stream_unref(self.stream)
        self.stream = None
    def delete(self):
        if _debug:
            print 'delete'
        if not self.stream:
            return

        with context.lock:
            pa.pa_stream_disconnect(self.stream)

        # Wait for stream to terminate before continuing. Prevents cleaned up callbacks to be
        # called
        while pa.pa_stream_get_state(self.stream) != pa.PA_STREAM_TERMINATED:
            context.wait()

        pa.pa_stream_unref(self.stream)
        self.stream = None