Logo Search packages:      
Sourcecode: pulseaudio version File versions  Download package

const pa_buffer_attr* pa_stream_get_buffer_attr ( pa_stream s  ) 

Return the buffer metrics of the stream. Only valid after the stream has been connected successfuly and if the server is at least PulseAudio 0.9.

Since:
0.9.0

Definition at line 1629 of file stream.c.

References PA_ERR_BADSTATE, PA_ERR_NODATA, PA_STREAM_READY, and PA_STREAM_UPLOAD.

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

    PA_CHECK_VALIDITY_RETURN_NULL(s->context, s->state == PA_STREAM_READY, PA_ERR_BADSTATE);
    PA_CHECK_VALIDITY_RETURN_NULL(s->context, s->direction != PA_STREAM_UPLOAD, PA_ERR_BADSTATE);
    PA_CHECK_VALIDITY_RETURN_NULL(s->context, s->context->version >= 9, PA_ERR_NODATA);

    return &s->buffer_attr;
}


Generated by  Doxygen 1.6.0   Back to index