From 5d25c00e4b613b9cdf2c04fa3a68dffa03834a68 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Sun, 14 Mar 2004 22:34:33 +0000 Subject: gst-indent Original commit message from CVS: gst-indent --- gst/wavparse/gstwavparse.h | 114 +++++++++++++++++++++++---------------------- 1 file changed, 59 insertions(+), 55 deletions(-) (limited to 'gst/wavparse/gstwavparse.h') 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 #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__ */ -- cgit