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

const pa_buffer_attr* pa_stream_get_buffer_attr ( pa_stream s  ) 

Return the per-stream server-side buffer metrics of the stream. Only valid after the stream has been connected successfuly and if the server is at least PulseAudio 0.9. This will return the actual configured buffering metrics, which may differ from what was requested during pa_stream_connect_record() or pa_stream_connect_playback(). This call will always return the actually per-stream server-side buffer metrics, regardless whether PA_STREAM_ADJUST_LATENCY is set or not.

Since:
0.9.0

Definition at line 2361 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_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_NOTSUPPORTED);

    return &s->buffer_attr;
}


Generated by  Doxygen 1.6.0   Back to index