¡@

Home 

2014/10/15 ¤U¤È 10:14:59

iphone Programming Glossary: tocomposition

How can I overlap audio files and combine for iPhone in Xcode?

http://stackoverflow.com/questions/12628554/how-can-i-overlap-audio-files-and-combine-for-iphone-in-xcode

audio overlay share improve this question Here's what I did in my app. void setUpAndAddAudioAtPath NSURL assetURL toComposition AVMutableComposition composition AVURLAsset songAsset AVURLAsset URLAssetWithURL assetURL options nil AVMutableCompositionTrack.. @ mysound2 ofType @ mp3 NSURL assetURL1 NSURL fileURLWithPath URLPath1 self setUpAndAddAudioAtPath assetURL1 toComposition composition NSURL assetURL2 NSURL fileURLWithPath URLPath2 self setUpAndAddAudioAtPath assetURL2 toComposition composition.. toComposition composition NSURL assetURL2 NSURL fileURLWithPath URLPath2 self setUpAndAddAudioAtPath assetURL2 toComposition composition AVMutableAudioMix audioMix AVMutableAudioMix audioMix audioMix.inputParameters NSArray arrayWithArray audioMixParams..

Combining two .caf files on iPhone

http://stackoverflow.com/questions/7656512/combining-two-caf-files-on-iphone

Here's more or less how we created the export functionality in our app void setUpAndAddAudioAtPath NSURL assetURL toComposition AVMutableComposition composition AVURLAsset songAsset AVURLAsset URLAssetWithURL assetURL options nil AVMutableCompositionTrack.. URLPath1 pathToYourAudioFile1 NSURL assetURL1 NSURL fileURLWithPath URLPath1 self setUpAndAddAudioAtPath assetURL1 toComposition composition NSString URLPath2 pathToYourAudioFile2 NSURL assetURL2 NSURL fileURLWithPath URLPath2 self setUpAndAddAudioAtPath.. URLPath2 pathToYourAudioFile2 NSURL assetURL2 NSURL fileURLWithPath URLPath2 self setUpAndAddAudioAtPath assetURL2 toComposition composition AVMutableAudioMix audioMix AVMutableAudioMix audioMix audioMix.inputParameters NSArray arrayWithArray audioMixParams..