summaryrefslogtreecommitdiffstats
path: root/src/source-output.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/source-output.h')
-rw-r--r--src/source-output.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/source-output.h b/src/source-output.h
new file mode 100644
index 00000000..a8ea5a9f
--- /dev/null
+++ b/src/source-output.h
@@ -0,0 +1,37 @@
+#ifndef foosourceoutputhfoo
+#define foosourceoutputhfoo
+
+#include <inttypes.h>
+
+#include "source.h"
+#include "sample.h"
+#include "memblockq.h"
+#include "resampler.h"
+#include "module.h"
+#include "client.h"
+
+struct pa_source_output {
+ uint32_t index;
+
+ char *name;
+ struct pa_module *owner;
+ struct pa_client *client;
+ struct pa_source *source;
+ struct pa_sample_spec sample_spec;
+
+ void (*push)(struct pa_source_output *o, const struct pa_memchunk *chunk);
+ void (*kill)(struct pa_source_output* o);
+
+ struct pa_resampler* resampler;
+
+ void *userdata;
+};
+
+struct pa_source_output* pa_source_output_new(struct pa_source *s, const char *name, const struct pa_sample_spec *spec);
+void pa_source_output_free(struct pa_source_output* o);
+
+void pa_source_output_kill(struct pa_source_output*o);
+
+void pa_source_output_push(struct pa_source_output *o, const struct pa_memchunk *chunk);
+
+#endif