spectrum: refactor processing loop for block based operation
authorStefan Kost <ensonic@users.sf.net>
Thu, 24 Mar 2011 22:10:56 +0000 (00:10 +0200)
committerStefan Kost <ensonic@users.sf.net>
Thu, 24 Mar 2011 22:15:48 +0000 (00:15 +0200)
commitfb071dd89e16337b4545c6144d44813b09e4ed0d
tree37d3ce60439810c726f123488e4b8df5f56ef818
parent51f25f371b14f9f2cb67091aa5cde0374109ee9f
spectrum: refactor processing loop for block based operation

Previously the chain function was working sample frame based. In each cycle it
was checking if it is time to run a fft or if it is time to send a message.
Now we changed the data transform functions to work on a block of data and
calculate the max length until either {end-of-data, do-fft, do-msg}. This allows
us also to avoid the duplicated code for the single and multi-channel case (as
the transformers have the same signature now).
gst/spectrum/gstspectrum.c
gst/spectrum/gstspectrum.h