]> code.delx.au - pulseaudio/blob - src/source.h
add pa_ prefix to all identifiers.
[pulseaudio] / src / source.h
1 #ifndef foosourcehfoo
2 #define foosourcehfoo
3
4 struct pa_source;
5
6 #include <inttypes.h>
7 #include "core.h"
8 #include "sample.h"
9 #include "idxset.h"
10 #include "memblock.h"
11 #include "memchunk.h"
12
13 struct pa_source {
14 uint32_t index;
15
16 char *name;
17 struct pa_core *core;
18 struct pa_sample_spec sample_spec;
19 struct pa_idxset *outputs;
20
21 void (*notify)(struct pa_source*source);
22 void *userdata;
23 };
24
25 struct pa_source* pa_source_new(struct pa_core *core, const char *name, int fail, const struct pa_sample_spec *spec);
26 void pa_source_free(struct pa_source *s);
27
28 /* Pass a new memory block to all output streams */
29 void pa_source_post(struct pa_source*s, struct pa_memchunk *b);
30
31 void pa_source_notify(struct pa_source *s);
32
33 char *pa_source_list_to_string(struct pa_core *c);
34
35 struct pa_source* pa_source_get_default(struct pa_core *c);
36
37 #endif