Im writing an audio processing program.
I read blok of wav file as a raw data then process it with my own filters and use FMOD to play this stream. And my question is how to use FMOD to process mp3 ? – to decode a compressed mp3 to raw samples and then play this block after processing.
- Swinkels asked 15 years ago
Alternatively you could use Stream_Create.
There you can define a callback-function, that is frequently called by fmod and requested to overgive a buffer filled with the actual stream-data.
At http://fmod.2mal2mal.de you can find some fmod-examples.
An example of how to use Stream_Create is SineMouse.
The DSP-functions are used by Simple_LPF_HPF_Gain.
Thanks for reply. Now i solve the problem using the FSOUND_Sample_Load to load mp3 into memory and next FSOUND_Sample_Lock to get the decompressed pcm data.
I dont wanna use DSP callback because processed pcm data will be used in different ways for ex. hdd recording or direct mp3 encoding without playing it.
- Swinkels answered 15 years ago
Please login first to submit.