]> code.delx.au - pulseaudio/blob - src/simple.h
main part of the native protocol
[pulseaudio] / src / 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
20 void pa_simple_free(struct pa_simple *s);
21
22 int pa_simple_write(struct pa_simple *s, const void*data, size_t length);
23 int pa_simple_read(struct pa_simple *s, const void*data, size_t length);
24
25 #endif