Logo Search packages:      
Sourcecode: pulseaudio version File versions

int pa_stream_is_corked ( pa_stream s  ) 

Return 1 if the this stream has been corked. This will return 0 if not, and negative on error.

Since:
0.9.11

Definition at line 2448 of file stream.c.

References PA_ERR_BADSTATE, PA_ERR_FORKED, PA_STREAM_READY, and PA_STREAM_UPLOAD.

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

    PA_CHECK_VALIDITY(s->context, !pa_detect_fork(), PA_ERR_FORKED);
    PA_CHECK_VALIDITY(s->context, s->state == PA_STREAM_READY, PA_ERR_BADSTATE);
    PA_CHECK_VALIDITY(s->context, s->direction != PA_STREAM_UPLOAD, PA_ERR_BADSTATE);

    return s->corked;
}


Generated by  Doxygen 1.6.0   Back to index