gstreamer/gst/spectrum
Nicolas Dufresne b8142bde07 spectrum: Fix min and max for bands property
The number of FFTs is calculated with the following formula:

  guint nfft = 2 * bands - 2;

nfft is passed to gst_fft_f32_new() as the len argument and is of type
unsigned integer. This method required that len is at leas 1, then
maximum G_MAXINT, as other values would be negative. If we extrapolate
from the formula above it means we need "bands" to be between 2 and
((guint)G_MAXINT + 2) / 2).

https://bugzilla.gnome.org/show_bug.cgi?id=744213
2015-02-15 21:34:28 -05:00
..
.gitignore gst/spectrum/.cvsignore: Ignore more. 2006-06-12 11:04:59 +00:00
gstspectrum.c spectrum: Fix min and max for bands property 2015-02-15 21:34:28 -05:00
gstspectrum.h Fix FSF address 2012-11-04 00:07:18 +00:00
Makefile.am gst: Add better support for static plugins 2013-04-15 15:54:11 +02:00
spectrum.vcproj more working plugins 2004-07-27 21:41:30 +00:00