diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-06-15 15:18:33 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-06-15 15:18:33 +0000 |
commit | 78f386ad45dc046d673fca5441dff188a7297059 (patch) | |
tree | 9ffa89fb46457318184e0531bb0e68d3817ceb4d /src/sourceoutput.h | |
parent | 98f41f1e70e66dcfc4c457ae47bffb07ed83947f (diff) |
more work
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@17 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/sourceoutput.h')
-rw-r--r-- | src/sourceoutput.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/sourceoutput.h b/src/sourceoutput.h new file mode 100644 index 00000000..c6c0a717 --- /dev/null +++ b/src/sourceoutput.h @@ -0,0 +1,27 @@ +#ifndef foooutputstreamhfoo +#define foooutputstreamhfoo + +#include <inttypes.h> +#include "source.h" +#include "sample.h" +#include "memblockq.h" + +struct output_stream { + char *name; + uint32_t index; + + struct source *source; + struct sample_spec spec; + + struct memblockq *memblockq; + void (*kill)(struct output_stream* i, void *userdata); + void *kill_userdata; +}; + +struct output_stream* output_stream_new(struct source *s, struct sample_spec *spec, const char *name); +void output_stream_free(struct output_stream* o); + +void output_stream_set_kill_callback(struct output_stream *i, void (*kill)(struct output_stream*i, void *userdata), void *userdata); +void output_stream_kill(struct output_stream*i); + +#endif |