]>
code.delx.au - pulseaudio/blob - src/sinkinput.h
1 #ifndef foosinkinputhfoo
2 #define foosinkinputhfoo
15 struct sample_spec spec
;
18 int (*peek
) (struct sink_input
*i
, struct memchunk
*chunk
);
19 void (*drop
) (struct sink_input
*i
, size_t length
);
20 void (*kill
) (struct sink_input
*i
);
21 uint32_t (*get_latency
) (struct sink_input
*i
);
26 struct sink_input
* sink_input_new(struct sink
*s
, struct sample_spec
*spec
, const char *name
);
27 void sink_input_free(struct sink_input
* i
);
29 /* Code that didn't create the input stream should call this function to
30 * request destruction of it */
31 void sink_input_kill(struct sink_input
*i
);
33 uint32_t sink_input_get_latency(struct sink_input
*i
);
34 char *sink_input_list_to_string(struct core
*c
);