Possible Duplicate:
merge Audio files on iPhone
I’m trying to combine 2 audio files into one file.
For example: file1.mp3 – it says “I am”. file2.mp3 – it says “George”.
I want to get a combined file file3.mp3 which will say “I am George”.
How can I do this in objective-C?
Look at AVFoundation framework … There’re many ways, but the simplest one for you can be …
[composition addMutableTrackWithMediaType:AVMediaTypeAudio preferredTrackID:kCMPersistentTrackID_Invalid];Simplified description, but you get a clue. Depends on how many tracks do you have, what kind of effects do you want to use, etc.
If you do want to see some real code, open AVMovieExporter example, copy this code and remove video stuff and leave audio there only.