0
0

Hello all,

I started using fmod recently for a project of mine. I am not exactly sure if it is the right library for the job and that’s exactly why I am making this post. I need to be reading mp3 files and doing analysis on them by dividing them in equal number of parts and sampling the amplitude of the sound at each one of them for every song. I don’t need to be playing them and just want to do the above process of reading amplitude as fast as is possible with my CPU because the number of songs will vary.
My question is, can this be done with fmod? I was looking through the documentation and saw that a function that might do the job for me is Channel::getSpectrum() . Is it the only one or is there something I am missing? Or is the right function Sound::readData(). If it is Sound::readData() I do not understand in what kind of format are the returned data. Thanks in advance for any answers.

  • You must to post comments
0
0

Hi Lefteris, welcome to the FMOD Forum.

It sounds like Sound::readData is what you want, the data from Sound::readData will be 16-bit PCM data.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.