LWJGL Forum

Please login or register.

Login with username, password and session length

Author Topic: Getting the spectrum...  (Read 13155 times)

WiESi

  • Regular nerd
  • **
  • Offline Offline
  • Posts: 70
Getting the spectrum...
« 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
Logged

Matzon

  • Demigod
  • *****
  • Offline Offline
  • Posts: 2242
Getting the spectrum...
« Reply #1 on: March 22, 2005, 11:24:15 »

WiESi

  • Regular nerd
  • **
  • Offline Offline
  • Posts: 70
Getting the spectrum...
« Reply #2 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
Logged

WiESi

  • Regular nerd
  • **
  • Offline Offline
  • Posts: 70
Getting the spectrum...
« Reply #3 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
Logged

Matzon

  • Demigod
  • *****
  • Offline Offline
  • Posts: 2242
Getting the spectrum...
« Reply #4 on: January 07, 2006, 00:34:25 »

you increase the fft values artificially relative to the volume ?

WiESi

  • Regular nerd
  • **
  • Offline Offline
  • Posts: 70
Getting the spectrum...
« Reply #5 on: January 07, 2006, 09:00:42 »

But when the volume becomes 0, the values become 0 too.
Logged

Matzon

  • Demigod
  • *****
  • Offline Offline
  • Posts: 2242
Getting the spectrum...
« Reply #6 on: January 07, 2006, 09:16:49 »

hmm, best take it to the fmod.org borads then :)

WiESi

  • Regular nerd
  • **
  • Offline Offline
  • Posts: 70
Getting the spectrum...
« Reply #7 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
Logged