]>
code.delx.au - pulseaudio/blob - src/sinkinput.h
f62070c487bf6865058705afbb0c44623c182bd7
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
);
27 struct sink_input
* sink_input_new(struct sink
*s
, struct sample_spec
*spec
, const char *name
);
28 void sink_input_free(struct sink_input
* i
);
30 /* Code that didn't create the input stream should call this function to
31 * request destruction of it */
32 void sink_input_kill(struct sink_input
*i
);
34 uint32_t sink_input_get_latency(struct sink_input
*i
);
35 char *sink_input_list_to_string(struct core
*c
);