Logo Search packages:      
Sourcecode: pulseaudio version File versions

int pa_stream_set_monitor_stream ( pa_stream s,
uint32_t  sink_input_idx 
)

For record streams connected to a monitor source: monitor only a very specific sink input of the sink. Thus function needs to be called before pa_stream_connect_record() is called.

Since:
0.9.11

Definition at line 2598 of file stream.c.

References PA_ERR_BADSTATE, PA_ERR_FORKED, PA_ERR_INVALID, PA_ERR_NOTSUPPORTED, PA_INVALID_INDEX, and PA_STREAM_UNCONNECTED.

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

    PA_CHECK_VALIDITY(s->context, !pa_detect_fork(), PA_ERR_FORKED);
    PA_CHECK_VALIDITY(s->context, sink_input_idx != PA_INVALID_INDEX, PA_ERR_INVALID);
    PA_CHECK_VALIDITY(s->context, s->state == PA_STREAM_UNCONNECTED, PA_ERR_BADSTATE);
    PA_CHECK_VALIDITY(s->context, s->context->version >= 13, PA_ERR_NOTSUPPORTED);

    s->direct_on_input = sink_input_idx;

    return 0;
}


Generated by  Doxygen 1.6.0   Back to index