diff options
author | Andy Wingo <wingo@pobox.com> | 2005-07-04 14:02:46 +0000 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2005-07-04 14:02:46 +0000 |
commit | 77a7c4c8fbc7a9fb59039c0f9469923dd651c009 (patch) | |
tree | 243e22219ac7b5c902681a70a40f5d7d9704b781 /gst/level/gstlevel.h | |
parent | d0516df78a67006fca5cd20295e6237d81470196 (diff) |
examples/level/: Examples moved out of the source dir. Not updated tho.
Original commit message from CVS:
2005-07-04 Andy Wingo <wingo@pobox.com>
* examples/level/:
* examples/level/Makefile.am:
* examples/level/README:
* examples/level/demo.c:
* examples/level/plot.c: Examples moved out of the source dir. Not
updated tho.
* configure.ac: Add level to the build.
* gst/level/Makefile.am:
* gst/level/gstlevel.h:
* gst/level/gstlevel.c: Cleaned up, ported to 0.9.
Diffstat (limited to 'gst/level/gstlevel.h')
-rw-r--r-- | gst/level/gstlevel.h | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/gst/level/gstlevel.h b/gst/level/gstlevel.h index 59427c7d..a7072386 100644 --- a/gst/level/gstlevel.h +++ b/gst/level/gstlevel.h @@ -27,12 +27,10 @@ #include <gst/gst.h> +#include <gst/base/gstbasetransform.h> -#include "gstlevel-marshal.h" -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ +G_BEGIN_DECLS #define GST_TYPE_LEVEL \ @@ -46,13 +44,14 @@ extern "C" { #define GST_IS_LEVEL_CLASS(obj) \ (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_LEVEL)) + typedef struct _GstLevel GstLevel; typedef struct _GstLevelClass GstLevelClass; + struct _GstLevel { - GstElement element; + GstBaseTransform element; - GstPad *sinkpad, *srcpad; gboolean signal; /* whether or not to emit signals */ gdouble interval; /* how many seconds between emits */ @@ -75,16 +74,14 @@ struct _GstLevel { }; struct _GstLevelClass { - GstElementClass parent_class; - void (*level) (GstElement *element, gdouble time, gint channel, - gdouble RMS_dB, gdouble peak_dB, gdouble decay_peak_dB); + GstBaseTransformClass parent_class; }; + GType gst_level_get_type(void); -#ifdef __cplusplus -} -#endif /* __cplusplus */ + +G_END_DECLS -#endif /* __GST_STEREO_H__ */ +#endif /* __GST_LEVEL_H__ */ |