diff options
Diffstat (limited to 'gst/level')
-rw-r--r-- | gst/level/gstlevel.c | 2 | ||||
-rw-r--r-- | gst/level/gstlevel.h | 28 |
2 files changed, 15 insertions, 15 deletions
diff --git a/gst/level/gstlevel.c b/gst/level/gstlevel.c index de8ca6a0..6bb53ddc 100644 --- a/gst/level/gstlevel.c +++ b/gst/level/gstlevel.c @@ -328,7 +328,7 @@ gst_level_calculate_##TYPE (TYPE * in, guint num, gint channels, \ { \ register int j; \ double squaresum = 0.0; /* square sum of the integer samples */ \ - register double square = 0.0; /* Square */ \ + register double square = 0.0; /* Square */ \ register double peaksquare = 0.0; /* Peak Square Sample */ \ gdouble normalizer; /* divisor to get a [-1.0, 1.0] range */ \ \ diff --git a/gst/level/gstlevel.h b/gst/level/gstlevel.h index b003c23a..50794b30 100644 --- a/gst/level/gstlevel.h +++ b/gst/level/gstlevel.h @@ -50,27 +50,27 @@ typedef struct _GstLevelClass GstLevelClass; struct _GstLevel { GstBaseTransform element; - gboolean message; /* whether or not to post messages */ - gdouble interval; /* how many seconds between emits */ + gboolean message; /* whether or not to post messages */ + gdouble interval; /* how many seconds between emits */ - gint rate; /* caps variables */ + gint rate; /* caps variables */ gint width; gint channels; - gdouble decay_peak_ttl; /* time to live for peak in seconds */ - gdouble decay_peak_falloff; /* falloff in dB/sec */ - gint num_frames; /* frame count (1 sample per channel) + gdouble decay_peak_ttl; /* time to live for peak in seconds */ + gdouble decay_peak_falloff; /* falloff in dB/sec */ + gint num_frames; /* frame count (1 sample per channel) * since last emit */ /* per-channel arrays for intermediate values */ - gdouble *CS; /* normalized Cumulative Square */ - gdouble *peak; /* normalized Peak value over buffer */ - gdouble *last_peak; /* last normalized Peak value over interval */ - gdouble *decay_peak; /* running decaying normalized Peak */ - gdouble *decay_peak_base; /* value of last peak we are decaying from */ - gdouble *MS; /* normalized Mean Square of buffer */ - gdouble *RMS_dB; /* RMS in dB to emit */ - GstClockTime *decay_peak_age; /* age of last peak */ + gdouble *CS; /* normalized Cumulative Square */ + gdouble *peak; /* normalized Peak value over buffer */ + gdouble *last_peak; /* last normalized Peak value over interval */ + gdouble *decay_peak; /* running decaying normalized Peak */ + gdouble *decay_peak_base; /* value of last peak we are decaying from */ + gdouble *MS; /* normalized Mean Square of buffer */ + gdouble *RMS_dB; /* RMS in dB to emit */ + GstClockTime *decay_peak_age; /* age of last peak */ }; struct _GstLevelClass { |