0
0

I was wondering if I can use FMOD to get the uncompressed audio data of an mp3 without playing it. The reason I ask is that FMOD’s FFT seems to work in real time, which doesn’t help my situation. I want to analyze the whole song before it starts playing so as to do some pre-emptive animations (for example, a rhythm game where notes appear on the screen before you hear them).

Even if there is just a way to get the uncompressed bytes I can still do my own FFT.

If it makes a difference the target platform is XNA for PC and possibly 360.

  • You must to post comments
0
0

Well, after searching around for a while, I think I figured out what I need to do for this – could some kind soul verify?

-Open audio files with the OPENONLY flag set (should I use CreateSound or CreateStream though?)
-Call Sound::readData to get the whole file in one blow
-Put the retrieved data into an unmanaged buffer
-Treat the sound as raw audio data (as opposed to MP3 compression)
-Write my own FFT function to get a breakdown of the frequencies

Thank you,
Tom

  • You must to post comments
0
0

Hi Tom,

That sounds about right. You should probably use CreateStream.

  • You must to post comments
0
0

Thanks, just knowing that this can be done is a big help (means I don’t have to look for another library too).

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.