0
0

Hi,

i would like to analyze a music before it is played. I need the values from the spectrum data.

I have been playing with spectrum data and it is very good, but only for real time analyzing. I need offline data, without playing and before the song starts.

How can i do that?

thanks!!!

  • You must to post comments
0
0

The only thing I could suggest is to create another System object with the output mode of FMOD_OUTPUTTYPE_NOSOUND_NRT and do a quick set of System::update calls to generate the fft data.

  • You must to post comments
0
0

Thanks, but I have tried your suggestion and using that outputmode still plays the music on the speakers…

I only need the data for the music channel.

Any other idea?

Thanks.

P.D: Muting the channel i need does the job. I can analyze the audio without playing!

P.D2: But now i have a new problem. The spectrum data can be obtained when the music is playing… So if I do a loop through the song, calling set position, the system is not updated fast enough, so i get always the same spectrum data.

I have found a workaround for the latest, using a Sleep(10) on every iteration… but this is a very bad solution, because it will give problems on slow computers.

P.D3: My fault… I need to call setOutput BEFORE calling Init !!!! Solved now!

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.