Logo Search packages:      
Sourcecode: pulseaudio version File versions  Download package

void pa_simple_free ( pa_simple s )

Close and free the connection to the server. The connection objects becomes invalid when this is called.

Definition at line 255 of file simple.c.

                                  {
    pa_assert(s);

    if (s->mainloop)
        pa_threaded_mainloop_stop(s->mainloop);

    if (s->stream)
        pa_stream_unref(s->stream);

    if (s->context) {
        pa_context_disconnect(s->context);
        pa_context_unref(s->context);
    }

    if (s->mainloop)
        pa_threaded_mainloop_free(s->mainloop);

    pa_xfree(s);
}

Generated by  Doxygen 1.6.0   Back to index