Lines Matching defs:sink

33 #include <pulsecore/sink.h>
78 pa_sink *sink; /* NULL while we are being moved */
80 /* This is set to true when creating the sink input if the sink was
81 * requested by the application that created the sink input. This is
82 * sometimes useful for determining whether the sink input should be
83 * moved by some automatic policy. If the sink input is moved away from the
84 * sink that the application requested, this flag is reset to false. */
89 /* A sink input may be connected to multiple source outputs
102 pa_cvolume reference_ratio; /* The ratio of the stream's volume to the sink's reference volume */
103 pa_cvolume real_ratio; /* The ratio of the stream's volume to the sink's real volume */
115 pa_cvolume volume_factor_sink; /* A second volume factor in format of the sink this stream is connected to. */
122 /* if true then the volume and the mute state of this sink-input
127 /* if users move the sink-input to a sink, and the sink is not default_sink,
128 * the sink->name will be saved in preferred_sink. And later if sink-input
150 * before peek() if it is called at all. Only called if the sink
155 /* Called whenever the maximum rewindable size of the sink
159 /* Called whenever the maximum rewindable size of the sink
161 * of the virtual sink to the master sink. Must return size_t (-1)
162 * if there is no limit or if the virtual sink is not opened.
166 /* Called whenever the maximum request size of the sink
170 /* Called whenever the configured latency of the sink
174 /* Called whenever the latency range of the sink changes. Called
178 /* Called whenever the fixed latency of the sink changes, if there
183 * connected to a sink or when the rtpoll/asyncmsgq fields
185 * unless you rewrite a sink that is piggy-backed onto
190 * disconnected from its sink. Called from IO thread context */
193 /* If non-NULL called whenever the sink this input is attached
198 /* If non-NULL called whenever the sink this input is attached
202 /* If non-NULL called whenever the sink input is moved to a new
203 * sink. Called from main context after the sink input has been
204 * detached from the old sink and before it has been attached to
205 * the new sink. If dest is NULL the move was executed in two
224 /* If non-NULL this function is called before this sink input is
225 * move to a sink and if it returns false the move will not
233 /* If non-NULL this function is called whenever the sink input
237 /* If non-NULL this function is called whenever the sink input
243 /* Used to store the rewind amount of the origin sink during a move */
244 size_t origin_rewind_bytes; /* In sink input sample spec */
258 uint64_t underrun_for_sink; /* Like underrun_for, but in sink sample spec */
273 /* The requested latency for the sink */
319 pa_sink *sink;
378 only a kind request. The sink driver may not be able to fulfill it
380 sink driver will call ->rewind() and pass the number of bytes that
390 /* This returns the sink's fields converted into out sample type */
419 bool pa_sink_input_may_move(pa_sink_input *i); /* may this sink input move at all? */
420 bool pa_sink_input_may_move_to(pa_sink_input *i, pa_sink *dest); /* may this sink input move to this sink? */
423 * first the detaching from the old sink, then the attaching to the
424 * new sink */
431 /* To be used exclusively by the sink driver IO thread */
435 void pa_sink_input_process_rewind(pa_sink_input *i, size_t nbytes /* in the sink's sample spec */);
436 void pa_sink_input_update_max_rewind(pa_sink_input *i, size_t nbytes /* in the sink's sample spec */);
437 void pa_sink_input_update_max_request(pa_sink_input *i, size_t nbytes /* in the sink's sample spec */);
458 * a filter sink's input is detached, it has to detach also all inputs
459 * connected to the filter sink. In case the filter sink's input was detached
460 * because the filter sink is being removed, those other inputs will be moved
461 * to another sink or removed, and moving and removing involve detaching the
465 * input's sink. If the input's sink is a detached filter sink, shouldn't
467 * root sink's IO thread, and when the filter sink is detached, it would seem
469 * associated with the filter sink. Currently sending messages to detached
475 /* Called from the main thread, from sink.c only. The normal way to set the
476 * sink input volume is to call pa_sink_input_set_volume(), but the flat volume
477 * logic in sink.c needs also a function that doesn't do all the extra stuff
482 /* Called from the main thread, from sink.c only. This shouldn't be a public
483 * function, but the flat volume logic in sink.c currently needs a way to
484 * directly set the sink input reference ratio. This function simply sets