Logo Search packages:      
Sourcecode: pulseaudio version File versions

int pa_stream_is_suspended ( pa_stream s  ) 

Return 1 if the sink or source this stream is connected to has been suspended. This will return 0 if not, and negative on error. This function will return with PA_ERR_NOTSUPPORTED when the server is older than 0.9.8.

Since:
0.9.8

Definition at line 2133 of file stream.c.

References PA_ERR_BADSTATE, PA_ERR_NOTSUPPORTED, PA_STREAM_READY, and PA_STREAM_UPLOAD.

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

    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);
    PA_CHECK_VALIDITY(s->context, s->context->version >= 12, PA_ERR_NOTSUPPORTED);

    return s->suspended;
}


Generated by  Doxygen 1.6.0   Back to index