diff options
author | Iain Holmes <iain@prettypeople.org> | 2004-11-12 15:04:55 +0000 |
---|---|---|
committer | Iain Holmes <iain@prettypeople.org> | 2004-11-12 15:04:55 +0000 |
commit | 0548c564476082e4eb94ea96a629bf8427420b5e (patch) | |
tree | 8ecd2d8efa3a0fc74692873398df6d459fc8cbe7 /ext/polyp/polypsink.h | |
parent | c39ed546c7cf1f2bd80fc721267d56d18dfb97c9 (diff) | |
download | gst-plugins-bad-0548c564476082e4eb94ea96a629bf8427420b5e.tar.gz gst-plugins-bad-0548c564476082e4eb94ea96a629bf8427420b5e.tar.bz2 gst-plugins-bad-0548c564476082e4eb94ea96a629bf8427420b5e.zip |
Added the polypaudio sink and hooked it into the build system.
Original commit message from CVS:
Added the polypaudio sink and hooked it into the build system.
Diffstat (limited to 'ext/polyp/polypsink.h')
-rw-r--r-- | ext/polyp/polypsink.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/ext/polyp/polypsink.h b/ext/polyp/polypsink.h new file mode 100644 index 00000000..3bcb454d --- /dev/null +++ b/ext/polyp/polypsink.h @@ -0,0 +1,59 @@ +#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; + + gboolean caching; + char *cache_id; +}; + +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__ */ |