Original commit message from CVS:
comments
This commit is contained in:
Thomas Vander Stichele 2004-07-27 16:41:15 +00:00
parent ffc787b6ab
commit c2f831741b
2 changed files with 6 additions and 0 deletions

View file

@ -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

View file

@ -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