Logo Search packages:      
Sourcecode: pulseaudio version File versions

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

Set the callback function that is called when a the server starts playback after an underrun or on initial startup. This only informs that audio is flowing again, it is no indication that audio started to reach the speakers already. (Only for playback streams).

Since:
0.9.11

Definition at line 1674 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->started_callback = cb;
    s->started_userdata = userdata;
}


Generated by  Doxygen 1.6.0   Back to index