Example #1
0
    def unload_module(self, module):
        user_data = p.ctx_success_cb_data()

        user_data.operation = 'unload_module'.encode('utf-8')

        p.pa_threaded_mainloop_lock(self.main_loop)

        o = p.pa_context_unload_module(self.ctx, module, self.ctx_success_cb,
                                       p.get_ref(user_data))

        while p.pa_operation_get_state(o) == p.PA_OPERATION_RUNNING:
            p.pa_threaded_mainloop_wait(self.main_loop)

        p.pa_operation_unref(o)

        p.pa_threaded_mainloop_unlock(self.main_loop)
    def unload_sink(self):
        self.load_sink_info()

        p.pa_context_unload_module(self.ctx, self.sink_owner_module,
                                   self.ctx_success_cb, None)
Example #3
0
    def unload_sinks(self):
        p.pa_context_unload_module(self.ctx, self.apps_sink_owner_module,
                                   self.ctx_success_cb, None)

        p.pa_context_unload_module(self.ctx, self.mic_sink_owner_module,
                                   self.ctx_success_cb, None)