I need to take two or more mp3 files and mix them into a single wav (or mp3) file, but I need to do it without listening to the original files (faster than the real speed of the files).
I looked at the examples that came with the API but I can’t figure out a way to do it…
Any help would be great!
P.S. Sorry about my english 😳
- somebodycr asked 10 years ago
you can load the wav or mp3 with fmod but you’re starting to step outside of what fmod does, this is something for a sound editor, not a playback library.
once you have the 2 loaded sounds, you can get access to their pcm data using Sound::lock / Sound::unlock. Or maybe you could read the data yourself with FMOD_OPENONLY flag and Sound::readData, but you need to mix the data together yourself into a new buffer then write the data to a wav yourself.
fmod does not write wavs or encode mp3s.
Well we do have a wavwriter output but it is a messy way of doing what you want because it still involves playing the sound.
Ok, I’m back, tnx for the answer
My teacher told me that it is ok if I play the original sounds to create the new one, I think I’ll use the FMOD_OUTPUTTYPE_WAVWRITER output to create my new file, no problem with that.
But, I was wondering if with FMOD_OUTPUTTYPE_WAVWRITER_NRT, I can do the same thing but faster?, I mean, if I use update to record & to play the files I get the same result in less time?
Tnx in advance
…from Costa Rica
Please login first to submit.