]> code.delx.au - pulseaudio/blob - src/polyplib-simple.h
f5f872eeecb422e6cbea7a7f0d0aecf7db3e5799
[pulseaudio] / src / polyplib-simple.h
1 #ifndef foosimplehfoo
2 #define foosimplehfoo
3
4 #include <sys/types.h>
5
6 #include "sample.h"
7 #include "polypdef.h"
8
9 struct pa_simple;
10
11 struct pa_simple* pa_simple_new(
12 const char *server,
13 const char *name,
14 enum pa_stream_direction dir,
15 const char *dev,
16 const char *stream_name,
17 const struct pa_sample_spec *ss,
18 const struct pa_buffer_attr *attr,
19 int *error);
20
21 void pa_simple_free(struct pa_simple *s);
22
23 int pa_simple_write(struct pa_simple *s, const void*data, size_t length, int *error);
24 int pa_simple_drain(struct pa_simple *s, int *error);
25
26 int pa_simple_read(struct pa_simple *s, void*data, size_t length, int *error);
27
28 #endif