¡@

Home 

2014/10/15 ¤U¤È 10:04:11

iphone Programming Glossary: audioasset1

How to append two audio files?

http://stackoverflow.com/questions/4191569/how-to-append-two-audio-files

Following is the sample code to do it. AVMutableComposition composition AVMutableComposition composition AVURLAsset audioAsset1 AVURLAsset alloc initWithURL NSURL fileURLWithPath filePath1 options nil AVURLAsset audioAsset2 AVURLAsset alloc initWithURL.. preferredTrackID kCMPersistentTrackID_Invalid audioTrack1 insertTimeRange CMTimeRangeMake kCMTimeZero audioAsset1.duration ofTrack audioAsset1 tracksWithMediaType AVMediaTypeAudio objectAtIndex 0 atTime kCMTimeZero error &error audioTrack1.. kCMPersistentTrackID_Invalid audioTrack1 insertTimeRange CMTimeRangeMake kCMTimeZero audioAsset1.duration ofTrack audioAsset1 tracksWithMediaType AVMediaTypeAudio objectAtIndex 0 atTime kCMTimeZero error &error audioTrack1 insertTimeRange CMTimeRangeMake..

[NSMutableArray objectAtIndex:]: index 0 beyond bounds for empty array from AVURLAsset

http://stackoverflow.com/questions/4398764/nsmutablearray-objectatindex-index-0-beyond-bounds-for-empty-array-from-avur

AVMutableComposition composition AVURLAsset videoAsset AVURLAsset alloc initWithURL audioURL options nil AVURLAsset audioAsset1 AVURLAsset alloc initWithURL audioURL1 options nil AVURLAsset audioAsset2 AVURLAsset alloc initWithURL audioURL1 options.. preferredTrackID kCMPersistentTrackID_Invalid compositionAudioTrack1 insertTimeRange CMTimeRangeMake kCMTimeZero audioAsset1.duration ofTrack audioAsset1 tracksWithMediaType AVMediaTypeAudio objectAtIndex 0 atTime kCMTimeZero error &error.. compositionAudioTrack1 insertTimeRange CMTimeRangeMake kCMTimeZero audioAsset1.duration ofTrack audioAsset1 tracksWithMediaType AVMediaTypeAudio objectAtIndex 0 atTime kCMTimeZero error &error AVMutableCompositionTrack compositionAudioTrack2..