Logo Search packages:      
Sourcecode: pulseaudio version File versions

uint32_t pa_stream_get_index ( pa_stream s  ) 

Return the sink input resp. source output index this stream is identified in the server with. This is useful for usage with the introspection functions, such as pa_context_get_sink_input_info() resp. pa_context_get_source_output_info().

Definition at line 262 of file stream.c.

References PA_ERR_BADSTATE, PA_INVALID_INDEX, and PA_STREAM_READY.

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

    PA_CHECK_VALIDITY_RETURN_ANY(s->context, s->state == PA_STREAM_READY, PA_ERR_BADSTATE, PA_INVALID_INDEX);

    return s->stream_index;
}


Generated by  Doxygen 1.6.0   Back to index