mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 18:48:44 +00:00
comments
Original commit message from CVS: comments
This commit is contained in:
parent
ffc787b6ab
commit
c2f831741b
2 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue