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

void pa_stream_set_state_callback ( pa_stream s,
pa_stream_notify_cb_t  cb,
void *  userdata 
)

Set the callback function that is called whenever the state of the stream changes

Definition at line 1251 of file stream.c.

                                                                                          {
    pa_assert(s);
    pa_assert(PA_REFCNT_VALUE(s) >= 1);

    s->state_callback = cb;
    s->state_userdata = userdata;
}


Generated by  Doxygen 1.6.0   Back to index