0
0

Hi !

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!

Tnx!

P.S. Sorry about my english 😳

  • You must to post comments
0
0

copy /b a.mp3+b.mp3 final.mp3

  • You must to post comments
0
0

Ok, I think I didn’t explained myself clear enough… 😛

What I need to do is to join the two files and create a new file where the two original files are overlaped… not one after another…

Tnx!

  • You must to post comments
0
0

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.

  • You must to post comments
0
0

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
8)

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.