From c2f831741b5bdf1a1c00bf4d0db53c331313f987 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Tue, 27 Jul 2004 16:41:15 +0000 Subject: comments Original commit message from CVS: comments --- gst/level/filter.func | 5 +++++ gst/level/gstlevel.c | 1 + 2 files changed, 6 insertions(+) (limited to 'gst') 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 -- cgit