diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2009-04-08 13:52:41 +0200 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2009-04-09 17:26:20 +0200 |
commit | 6bc6cafcc6086eb3072f4f1b4936393d9280fbb9 (patch) | |
tree | 8198f67badfe74d74d6fbdd75b06ac59c031ce4c /ext/pulse/pulsesink.h | |
parent | 28d733d53b241a0c4a80b30f32e70b4750adf573 (diff) |
pulsesink: rewrite pulsesink
Derive from BaseAudioSink and implement our custom ringbuffer that maps to the
internal pulseaudio ringbuffer.
Diffstat (limited to 'ext/pulse/pulsesink.h')
-rw-r--r-- | ext/pulse/pulsesink.h | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/ext/pulse/pulsesink.h b/ext/pulse/pulsesink.h index 9ec626cd..2f74ac3a 100644 --- a/ext/pulse/pulsesink.h +++ b/ext/pulse/pulsesink.h @@ -42,39 +42,31 @@ G_BEGIN_DECLS (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_PULSESINK)) #define GST_IS_PULSESINK_CLASS(obj) \ (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_PULSESINK)) +#define GST_PULSESINK_CAST(obj) \ + ((GstPulseSink *)(obj)) typedef struct _GstPulseSink GstPulseSink; typedef struct _GstPulseSinkClass GstPulseSinkClass; struct _GstPulseSink { - GstAudioSink sink; + GstBaseAudioSink sink; gchar *server, *device, *stream_name; + gchar *device_description; pa_threaded_mainloop *mainloop; - pa_context *context; - pa_stream *stream; - - pa_sample_spec sample_spec; - GstPulseProbe *probe; gdouble volume; gboolean volume_set; - - gchar *device_description; - - gboolean operation_success; - gboolean did_reset, in_write; - gboolean corked; gint notify; }; struct _GstPulseSinkClass { - GstAudioSinkClass parent_class; + GstBaseAudioSinkClass parent_class; }; GType gst_pulsesink_get_type (void); |