From 6e44a9c61858764e50a6593f15994fdd5a73c8af Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Wed, 21 Feb 2007 10:18:12 +0000 Subject: gst/level/gstlevel.*: Use function pointer for process function and add process functions for float audio. Original commit message from CVS: * gst/level/gstlevel.c: (gst_level_init), (gst_level_set_caps), (gst_level_transform_ip): * gst/level/gstlevel.h: Use function pointer for process function and add process functions for float audio. --- gst/level/gstlevel.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'gst/level/gstlevel.h') diff --git a/gst/level/gstlevel.h b/gst/level/gstlevel.h index ead53547..3cd5d3a8 100644 --- a/gst/level/gstlevel.h +++ b/gst/level/gstlevel.h @@ -48,7 +48,11 @@ G_BEGIN_DECLS typedef struct _GstLevel GstLevel; typedef struct _GstLevelClass GstLevelClass; - +/** + * GstLevel: + * + * Opaque data structure. + */ struct _GstLevel { GstBaseTransform element; @@ -73,6 +77,8 @@ struct _GstLevel { gdouble *MS; /* normalized Mean Square of buffer */ gdouble *RMS_dB; /* RMS in dB to emit */ GstClockTime *decay_peak_age; /* age of last peak */ + + void (*process)(gpointer, guint, guint, gdouble*, gdouble*); }; struct _GstLevelClass { -- cgit