diff options
Diffstat (limited to 'src/polypsink.h')
-rw-r--r-- | src/polypsink.h | 54 |
1 files changed, 34 insertions, 20 deletions
diff --git a/src/polypsink.h b/src/polypsink.h index 90b3b7e..4b9a76b 100644 --- a/src/polypsink.h +++ b/src/polypsink.h @@ -1,10 +1,32 @@ #ifndef __GST_POLYPSINK_H__ #define __GST_POLYPSINK_H__ +/* $Id$ */ + +/*** + This file is part of gst-polyp. + + gst-polyp is free software; you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as + published by the Free Software Foundation; either version 2.1 of the + License, or (at your option) any later version. + + gst-polyp is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with gst-polyp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 + USA. +***/ + #include <gst/gst.h> +#include </usr/include/gstreamer-0.10/gst/audio/gstaudiosink.h> -#include <polyp/polyplib-context.h> -#include <polyp/polyplib-stream.h> +#include <polyp/polypaudio.h> +#include <polyp/thread-mainloop.h> G_BEGIN_DECLS @@ -23,33 +45,25 @@ 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; + GstAudioSink sink; - int negotiated; + gchar *server, *device; - GstBuffer *buffer; - size_t buffer_index; + pa_threaded_mainloop *mainloop; + + pa_context *context; + pa_stream *stream; + + pa_sample_spec sample_spec; - size_t counter; - pa_usec_t latency; + int operation_success; }; struct _GstPolypSinkClass { - GstElementClass parent_class; + GstAudioSinkClass parent_class; }; GType gst_polypsink_get_type(void); -gboolean gst_polypsink_factory_init(GstPlugin *plugin); G_END_DECLS |