PDA

View Full Version : Description of spectrumData?


tim_harvey
27th June 2002, 06:20
Greetings,

I have seen this question asked many times on this forum, but have never seen an answer posted. Undoubtedly someone who has written a visualization plugin must know the answer:

What is the meaning of the data in the spectrumData array? Obviously there are 2 possible channels of 576 bytes, but I don't quite understand how the 576 bytes are broken up into frequencies. Is it a linear breakdown of 576 steps between 20Hz and 20Khz?

How often does winAMP update this data? Does winAMP continually perform an FFT on the incomming wave data or does it pull this from the mp3's (if playing mp3's).

Thanks for any information,

Tim

zgw
29th June 2002, 15:27
:) :) :) hmmmmm

As far as I know,the spectrumData and the waveformData are not the same, the spectrumData use for FFT:D :) the input plugin does something in spectrumData.
The spectrumData are filled by input plugin's "decode thread",and winamp fill (send) the data to vis plugin, How often it(winamp) update(send/fill the data to vis plugin) the data is refer to the vis plugin ,(default is 25ms):D ;)

All abrove are my own opinions, not really correct!

Have Fun !:)