Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

merge Audio files on iPhone

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)

like image 635
杨 白 Avatar asked Jul 29 '10 03:07

杨 白


1 Answers

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.

like image 116
Rhythmic Fistman Avatar answered Sep 24 '22 13:09

Rhythmic Fistman