Set the callback function that is called whenever the state of the stream changes Definition at line 1608 of file stream.c. References PA_STREAM_FAILED, and PA_STREAM_TERMINATED. { pa_assert(s); pa_assert(PA_REFCNT_VALUE(s) >= 1); if (s->state == PA_STREAM_TERMINATED || s->state == PA_STREAM_FAILED) return; s->state_callback = cb; s->state_userdata = userdata; }
|