2 * GStreamer pulseaudio plugin
4 * Copyright (c) 2004-2008 Lennart Poettering
6 * gst-pulse is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as
8 * published by the Free Software Foundation; either version 2.1 of the
9 * License, or (at your option) any later version.
11 * gst-pulse is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with gst-pulse; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
22 #ifndef __GST_PULSESINK_H__
23 #define __GST_PULSESINK_H__
26 #include <gst/audio/gstaudiosink.h>
28 #include <pulse/pulseaudio.h>
29 #include <pulse/thread-mainloop.h>
31 #include "pulseprobe.h"
35 #define GST_TYPE_PULSESINK \
36 (gst_pulsesink_get_type())
37 #define GST_PULSESINK(obj) \
38 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_PULSESINK,GstPulseSink))
39 #define GST_PULSESINK_CLASS(klass) \
40 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_PULSESINK,GstPulseSinkClass))
41 #define GST_IS_PULSESINK(obj) \
42 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_PULSESINK))
43 #define GST_IS_PULSESINK_CLASS(obj) \
44 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_PULSESINK))
45 #define GST_PULSESINK_CAST(obj) \
46 ((GstPulseSink *)(obj))
48 typedef struct _GstPulseSink GstPulseSink;
49 typedef struct _GstPulseSinkClass GstPulseSinkClass;
53 GstBaseAudioSink sink;
55 gchar *server, *device, *stream_name;
56 gchar *device_description;
58 pa_threaded_mainloop *mainloop;
68 const gchar *pa_version;
70 gboolean pa_defer_ran;
73 struct _GstPulseSinkClass
75 GstBaseAudioSinkClass parent_class;
78 GType gst_pulsesink_get_type (void);
82 #endif /* __GST_PULSESINK_H__ */