diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-09-10 13:31:06 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-09-10 13:31:06 +0000 |
commit | c0b67627b12536efe6bac5a065f1e6b0a5d39c72 (patch) | |
tree | 12b9ddde7d468c2dbed85abdc6b3842031811939 /src/polypsink.h | |
parent | 626941c51c739ae7fcfc2cb46e6edc2336b393e7 (diff) |
initial commit
git-svn-id: file:///home/lennart/svn/public/gst-pulse/trunk@3 bb39ca4e-bce3-0310-b5d4-eea78a553289
Diffstat (limited to 'src/polypsink.h')
-rw-r--r-- | src/polypsink.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/src/polypsink.h b/src/polypsink.h new file mode 100644 index 0000000..90b3b7e --- /dev/null +++ b/src/polypsink.h @@ -0,0 +1,56 @@ +#ifndef __GST_POLYPSINK_H__ +#define __GST_POLYPSINK_H__ + +#include <gst/gst.h> + +#include <polyp/polyplib-context.h> +#include <polyp/polyplib-stream.h> + +G_BEGIN_DECLS + +#define GST_TYPE_POLYPSINK \ + (gst_polypsink_get_type()) +#define GST_POLYPSINK(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_POLYPSINK,GstPolypSink)) +#define GST_POLYPSINK_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_POLYPSINK,GstPolypSinkClass)) +#define GST_IS_POLYPSINK(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_POLYPSINK)) +#define GST_IS_POLYPSINK_CLASS(obj) \ + (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_POLYPSINK)) + +typedef struct _GstPolypSink GstPolypSink; +typedef struct _GstPolypSinkClass GstPolypSinkClass; + +struct _GstPolypSink { + GstElement element; + + GstPad *sinkpad; + + char *server, *sink; + + struct pa_mainloop *mainloop; + struct pa_mainloop_api *mainloop_api; + struct pa_context *context; + struct pa_stream *stream; + struct pa_sample_spec sample_spec; + + int negotiated; + + GstBuffer *buffer; + size_t buffer_index; + + size_t counter; + pa_usec_t latency; +}; + +struct _GstPolypSinkClass { + GstElementClass parent_class; +}; + +GType gst_polypsink_get_type(void); +gboolean gst_polypsink_factory_init(GstPlugin *plugin); + +G_END_DECLS + +#endif /* __GST_POLYPSINK_H__ */ |