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.
- SorcererXIII asked 10 years ago
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
Please login first to submit.