Creating a Sound Visualization

I am trying to create a graph from a FMOD::Sound. Without having to play through the sound. Pretty much the visual the Studio generates when you drag and drop an mp3 into the editor. The two graphs representing left and right volumes.

Just a simple sound->GetVolumeAtTime(X) would do…

from there i could iterate through the song myself.

Most of the solutions I have seen have to do with dsp and get metrics but I figure there has to be a way to get sound volumes at certain time without playing the sound file first.

Thanks for any help :slight_smile:

There isn’t a direct way to do what you are asking, you will have to process the sound to know about the signal.

To do offline processing you could create a second System object with FMOD_OUTPUTTYPE_NOSOUND_NRT and call playSound on the sound there and use the DSP functionality offline, this will create a system that doesn’t output any sound.