summaryrefslogtreecommitdiffstats
path: root/ext/speex/gstspeexdec.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/speex/gstspeexdec.h')
-rw-r--r--ext/speex/gstspeexdec.h45
1 files changed, 21 insertions, 24 deletions
diff --git a/ext/speex/gstspeexdec.h b/ext/speex/gstspeexdec.h
index cae005b0..18ba8d5b 100644
--- a/ext/speex/gstspeexdec.h
+++ b/ext/speex/gstspeexdec.h
@@ -18,8 +18,8 @@
*/
-#ifndef __GST_SPEEXDEC_H__
-#define __GST_SPEEXDEC_H__
+#ifndef __GST_SPEEX_DEC_H__
+#define __GST_SPEEX_DEC_H__
#include <gst/gst.h>
#include <speex/speex.h>
@@ -27,20 +27,18 @@
#include <speex/speex_header.h>
#include <speex/speex_stereo.h>
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
+G_BEGIN_DECLS
-#define GST_TYPE_SPEEXDEC \
+#define GST_TYPE_SPEEX_DEC \
(gst_speex_dec_get_type())
-#define GST_SPEEXDEC(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_SPEEXDEC,GstSpeexDec))
-#define GST_SPEEXDEC_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_SPEEXDEC,GstSpeexDec))
-#define GST_IS_SPEEXDEC(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_SPEEXDEC))
-#define GST_IS_SPEEXDEC_CLASS(obj) \
- (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_SPEEXDEC))
+#define GST_SPEEX_DEC(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_SPEEX_DEC,GstSpeexDec))
+#define GST_SPEEX_DEC_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_SPEEX_DEC,GstSpeexDecClass))
+#define GST_IS_SPEEX_DEC(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_SPEEX_DEC))
+#define GST_IS_SPEEX_DEC_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_SPEEX_DEC))
typedef struct _GstSpeexDec GstSpeexDec;
typedef struct _GstSpeexDecClass GstSpeexDecClass;
@@ -51,8 +49,8 @@ struct _GstSpeexDec {
GstElement element;
/* pads */
- GstPad *sinkpad,
- *srcpad;
+ GstPad *sinkpad;
+ GstPad *srcpad;
void *state;
SpeexStereoState stereo;
@@ -70,20 +68,19 @@ struct _GstSpeexDec {
gboolean enh;
gint frame_size;
- guint64 samples_out;
+ GstClockTime frame_duration;
guint64 packetno;
+
+ GstSegment segment; /* STREAM LOCK */
+ gint64 granulepos; /* -1 = needs to be set from current time */
};
struct _GstSpeexDecClass {
GstElementClass parent_class;
};
-GType gst_speex_dec_get_type(void);
-
-
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
+GType gst_speex_dec_get_type (void);
+G_END_DECLS
-#endif /* __GST_SPEEXDEC_H__ */
+#endif /* __GST_SPEEX_DEC_H__ */