LWJGL Forum

Archive => FMOD => Topic started by: WiESi on March 22, 2005, 10:59:20

Title: Getting the spectrum...
Post by: WiESi on March 22, 2005, 10:59:20
Hi!

I have problems getting the spectrum. I already tried FSound.FSOUND_DSP_GetSpectrum() which seemed to work but I have trouble getting out the data of the returned FloatBuffer. Please help.

WiESi
Title: Getting the spectrum...
Post by: Matzon on March 22, 2005, 11:24:15
here ya go:
http://cvs.sourceforge.net/viewcvs.py/java-game-lib/LWJGL/src/java/org/lwjgl/test/fmod3/NetTest.java?rev=1.6&view=markup

Remember to activate the FFT unit or else it wont work!
Title: Getting the spectrum...
Post by: WiESi on March 22, 2005, 18:09:59
Thx, I forgot to activate the FFT unit (OK, actually I didn't know I have to).

WiESi
Title: Getting the spectrum...
Post by: WiESi on January 06, 2006, 18:13:39
Now I have another problem. When I decrease the volume the values of the spectrum drop down too. How do I prevent this effect?

WiESi
Title: Getting the spectrum...
Post by: Matzon on January 07, 2006, 00:34:25
you increase the fft values artificially relative to the volume ?
Title: Getting the spectrum...
Post by: WiESi on January 07, 2006, 09:00:42
But when the volume becomes 0, the values become 0 too.
Title: Getting the spectrum...
Post by: Matzon on January 07, 2006, 09:16:49
hmm, best take it to the fmod.org borads then :)
Title: Getting the spectrum...
Post by: WiESi on January 07, 2006, 11:50:13
Seems to be complicated, here's the solution if someone's interested: http://www.fmod.org/forum/viewtopic.php?t=4003

WiESi