Hi, I wanna merge a .caf file and a .mp3 file to a .mp3 file on iPhone,or I can convert them to .aac and then merge them.How can I do this ? (Just Like Kala OK,I wanna merge my voice and the music together)
+1
A:
You need to decode both files to LPCM (plain old ints), add/mix them together then re-encode. The iPhone SDK does not support MP3 encoding, so you should re-encode to AAC.
The Apple sample code iPhoneExtAudioFileConvertTest would be a good place to start.
Rhythmic Fistman
2010-08-03 11:26:22
I had mixed the two LPCM files together,then encode it to aac by the sdk.
2010-08-04 08:04:47