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

const pa_timing_info* pa_stream_get_timing_info ( pa_stream s  ) 

Return the latest raw timing data structure. The returned pointer points to an internal read-only instance of the timing structure. The user should make a copy of this structure if he wants to modify it. An in-place update to this data structure may be requested using pa_stream_update_timing_info(). If no pa_stream_update_timing_info() call was issued before, this function will fail with PA_ERR_NODATA. Please note that the write_index member field (and only this field) is updated on each pa_stream_write() call, not just when a timing update has been recieved.

Since:
0.8

Definition at line 1604 of file stream.c.

References PA_ERR_BADSTATE, 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->timing_info_valid, PA_ERR_BADSTATE);

    return &s->timing_info;
}


Generated by  Doxygen 1.6.0   Back to index