Logo Search packages:      
Sourcecode: pulseaudio version File versions

void pa_stream_set_buffer_attr_callback ( pa_stream p,
pa_stream_notify_cb_t  cb,
void *  userdata 
)

Set the callback function that is called whenver the buffer attributes on the server side change. Please note that the buffer attributes can change when moving a stream to a different sink/source too, hence if you use this callback you should use pa_stream_set_moved_callback() as well.

Since:
0.9.15

Definition at line 1958 of file stream.c.

References PA_STREAM_FAILED, and PA_STREAM_TERMINATED.

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

    if (pa_detect_fork())
        return;

    if (s->state == PA_STREAM_TERMINATED || s->state == PA_STREAM_FAILED)
        return;

    s->buffer_attr_callback = cb;
    s->buffer_attr_userdata = userdata;
}


Generated by  Doxygen 1.6.0   Back to index