FMOD Spectum

Hi,

i made some tests to get the spectrum of a mp3,
it seems to work first. But the values containing
in the returned Buffer did not range form 0-1.0f
as written in the FMOD API . Im taking about :



public FloatBuffer FSOUND_DSP_GetSpectrum()


Did someone also get this “wrong” floats back ?
I build the lastest avaible files from CVS!

  • jens

are you sure you’re using the latest files that you actually build? - coz I have no issues whatsoever. I will send you an example tonight.

I tested it under both maschines there at home,
both runining sdk_1_4_02_05-b04 under
win2k and xp. i checked my paths and so on,
all seems to be point to the new version.

  • jens

Ok, first of all i was a Greenhorn, one of my paths pointed to a wrong version. Thx matzon for you help :slight_smile:

I currently mising some Method in the LWJGL FMOD API:
FSOUND_DSP_SetPriority(…);

http://www.fmod.org/docs/HTML/FSOUND_DSP_SetPriority.html

I found out that the values returned by the getSpectrum method are scaled by the current volume level. So it would be handy to shift the default FFT unit in the DSP Chain.

Are there plans to add it ?

-jens

It is there. For some unknown reason I decided that it would be intuitive to call it FSOUND_DSP_GetActive (notice that there are two of those methods).
Fixed, and ruling a bug by the copy and paste fairie.