1 #ifndef foosinkinputhfoo
2 #define foosinkinputhfoo
13 struct pa_sink_input {
17 struct pa_module *owner;
18 struct pa_client *client;
20 struct pa_sample_spec sample_spec;
23 int (*peek) (struct pa_sink_input *i, struct pa_memchunk *chunk);
24 void (*drop) (struct pa_sink_input *i, size_t length);
25 void (*kill) (struct pa_sink_input *i);
26 uint32_t (*get_latency) (struct pa_sink_input *i);
30 struct pa_memchunk resampled_chunk;
31 struct pa_resampler *resampler;
34 struct pa_sink_input* pa_sink_input_new(struct pa_sink *s, const char *name, const struct pa_sample_spec *spec);
35 void pa_sink_input_free(struct pa_sink_input* i);
37 /* Code that didn't create the input stream should call this function to
38 * request destruction of it */
39 void pa_sink_input_kill(struct pa_sink_input *i);
41 uint32_t pa_sink_input_get_latency(struct pa_sink_input *i);
42 char *pa_sink_input_list_to_string(struct pa_core *c);
44 int pa_sink_input_peek(struct pa_sink_input *i, struct pa_memchunk *chunk);
45 void pa_sink_input_drop(struct pa_sink_input *i, size_t length);