summaryrefslogtreecommitdiffstats
path: root/gst/wavparse/gstwavparse.h
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2004-03-14 22:34:33 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2004-03-14 22:34:33 +0000
commit5d25c00e4b613b9cdf2c04fa3a68dffa03834a68 (patch)
tree74a5b1eaf3a324b520e64e87404fd0b3018a7829 /gst/wavparse/gstwavparse.h
parent1e83b097f7b732ae49e294a5a398bdc3e88854a8 (diff)
gst-indent
Original commit message from CVS: gst-indent
Diffstat (limited to 'gst/wavparse/gstwavparse.h')
-rw-r--r--gst/wavparse/gstwavparse.h114
1 files changed, 59 insertions, 55 deletions
diff --git a/gst/wavparse/gstwavparse.h b/gst/wavparse/gstwavparse.h
index 3893a293..b8cdd2de 100644
--- a/gst/wavparse/gstwavparse.h
+++ b/gst/wavparse/gstwavparse.h
@@ -27,8 +27,9 @@
#include <gst/bytestream/bytestream.h>
#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
+extern "C"
+{
+#endif /* __cplusplus */
#define GST_TYPE_WAVPARSE \
@@ -44,59 +45,62 @@ extern "C" {
#define GST_WAVPARSE_UNKNOWN 0 /* initialized state */
-#define GST_WAVPARSE_START 1 /* At the start */
+#define GST_WAVPARSE_START 1 /* At the start */
#define GST_WAVPARSE_DATA 2 /* in data region */
#define GST_WAVPARSE_OTHER 3 /* in unknown region */
-
-typedef struct _GstWavParse GstWavParse;
-typedef struct _GstWavParseClass GstWavParseClass;
-
-struct _GstWavParse {
- GstElement element;
-
- GstByteStream *bs;
- /* pads */
- GstPad *sinkpad,*srcpad;
-
- /* WAVE decoding state */
- gint state;
-
- /* format of audio, see defines below */
- gint format;
-
- /* useful audio data */
- gint bps;
- gint rate;
- gint channels;
- gint width;
-
- int dataleft;
- int byteoffset;
-
- gboolean seek_pending;
- guint64 seek_offset;
-
- GstBuffer *buf;
-};
-
-struct _GstWavParseClass {
- GstElementClass parent_class;
-};
-
-GType gst_wavparse_get_type(void);
-
-typedef struct _GstWavParseFormat GstWavParseFormat;
-
-struct _GstWavParseFormat {
- gint16 wFormatTag;
- guint16 wChannels;
- guint32 dwSamplesPerSec;
- guint32 dwAvgBytesPerSec;
- guint16 wBlockAlign;
- guint16 wBitsPerSample;
-};
-
-
+
+ typedef struct _GstWavParse GstWavParse;
+ typedef struct _GstWavParseClass GstWavParseClass;
+
+ struct _GstWavParse
+ {
+ GstElement element;
+
+ GstByteStream *bs;
+ /* pads */
+ GstPad *sinkpad, *srcpad;
+
+ /* WAVE decoding state */
+ gint state;
+
+ /* format of audio, see defines below */
+ gint format;
+
+ /* useful audio data */
+ gint bps;
+ gint rate;
+ gint channels;
+ gint width;
+
+ int dataleft;
+ int byteoffset;
+
+ gboolean seek_pending;
+ guint64 seek_offset;
+
+ GstBuffer *buf;
+ };
+
+ struct _GstWavParseClass
+ {
+ GstElementClass parent_class;
+ };
+
+ GType gst_wavparse_get_type (void);
+
+ typedef struct _GstWavParseFormat GstWavParseFormat;
+
+ struct _GstWavParseFormat
+ {
+ gint16 wFormatTag;
+ guint16 wChannels;
+ guint32 dwSamplesPerSec;
+ guint32 dwAvgBytesPerSec;
+ guint16 wBlockAlign;
+ guint16 wBitsPerSample;
+ };
+
+
/**** from public Microsoft RIFF docs ******/
#define GST_RIFF_WAVE_FORMAT_UNKNOWN (0x0000)
#define GST_RIFF_WAVE_FORMAT_PCM (0x0001)
@@ -129,7 +133,7 @@ struct _GstWavParseFormat {
#ifdef __cplusplus
}
-#endif /* __cplusplus */
+#endif /* __cplusplus */
-#endif /* __GST_WAVPARSE_H__ */
+#endif /* __GST_WAVPARSE_H__ */