summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2004-07-27 16:41:15 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2004-07-27 16:41:15 +0000
commitc2f831741b5bdf1a1c00bf4d0db53c331313f987 (patch)
tree59d3882d0824af2ba2bcf0dde6d68f8e4352045d /gst
parentffc787b6ab3dd830e18e2d339fcb94906a946689 (diff)
comments
Original commit message from CVS: comments
Diffstat (limited to 'gst')
-rw-r--r--gst/level/filter.func5
-rw-r--r--gst/level/gstlevel.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/gst/level/filter.func b/gst/level/filter.func
index 96b1d644..107b02b5 100644
--- a/gst/level/filter.func
+++ b/gst/level/filter.func
@@ -1,3 +1,8 @@
+/*
+static void inline
+gst_level_fast_16bit_chain (gint16 * in, guint num, gint channels,
+ gint resolution, double *CS, double *peak)
+*/
/* process one (interleaved) channel of incoming samples
* calculate square sum of samples
* normalize and return normalized Cumulative Square
diff --git a/gst/level/gstlevel.c b/gst/level/gstlevel.c
index 889ed505..dc51b705 100644
--- a/gst/level/gstlevel.c
+++ b/gst/level/gstlevel.c
@@ -201,6 +201,7 @@ gst_level_fast_16bit_chain (gint16 * in, guint num, gint channels,
in_data = (gint16 *) GST_BUFFER_DATA (buf);
+ /* total number of interleaved samples */
num_samples = GST_BUFFER_SIZE (buf) / (filter->width / 8);
if (num_samples % filter->channels != 0)
g_warning