¡@

Home 

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

iphone Programming Glossary: songasset

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

I did in my app. void setUpAndAddAudioAtPath NSURL assetURL toComposition AVMutableComposition composition AVURLAsset songAsset AVURLAsset URLAssetWithURL assetURL options nil AVMutableCompositionTrack track composition addMutableTrackWithMediaType.. AVMediaTypeAudio preferredTrackID kCMPersistentTrackID_Invalid AVAssetTrack sourceAudioTrack songAsset tracksWithMediaType AVMediaTypeAudio objectAtIndex 0 NSError error nil BOOL ok NO CMTime startTime CMTimeMakeWithSeconds.. objectAtIndex 0 NSError error nil BOOL ok NO CMTime startTime CMTimeMakeWithSeconds 0 1 CMTime trackDuration songAsset.duration CMTime longestTime CMTimeMake 848896 44100 19.24 seconds CMTimeRange tRange CMTimeRangeMake startTime trackDuration..

MPMediaItems raw song data

http://stackoverflow.com/questions/1656124/mpmediaitems-raw-song-data

curItem musicPlayer.nowPlayingItem NSURL url curItem valueForProperty MPMediaItemPropertyAssetURL AVURLAsset songAsset AVURLAsset URLAssetWithURL url options nil AVAssetExportSession exporter AVAssetExportSession alloc initWithAsset songAsset.. AVURLAsset URLAssetWithURL url options nil AVAssetExportSession exporter AVAssetExportSession alloc initWithAsset songAsset presetName AVAssetExportPresetPassthrough exporter.outputFileType @ public.mpeg 4 NSString exportFile self myDocumentsDirectory..

Extract iPod Library raw PCM samples and play with sound effects

http://stackoverflow.com/questions/4796643/extract-ipod-library-raw-pcm-samples-and-play-with-sound-effects

pathForResource @ Smooth_Sub Focus_192 ofType @ mp3 NSURL assetURL NSURL alloc initFileURLWithPath songPath AVURLAsset songAsset AVURLAsset URLAssetWithURL assetURL options nil NSError assetError nil AVAssetReader assetReader AVAssetReader assetReaderWithAsset.. assetURL options nil NSError assetError nil AVAssetReader assetReader AVAssetReader assetReaderWithAsset songAsset error &assetError retain if assetError NSLog @ Error @ assetError return AVAssetReaderOutput assetReaderOutput AVAssetReaderAudioMixOutput.. return AVAssetReaderOutput assetReaderOutput AVAssetReaderAudioMixOutput assetReaderAudioMixOutputWithAudioTracks songAsset.tracks audioSettings nil retain if assetReader canAddOutput assetReaderOutput NSLog @ Incompatible Asser Reader Output..

Drawing waveform with AVAssetReader

http://stackoverflow.com/questions/5032775/drawing-waveform-with-avassetreader

Next a method that takes a AVURLAsset and returns PNG image data NSData renderPNGAudioPictogramForAssett AVURLAsset songAsset NSError error nil AVAssetReader reader AVAssetReader alloc initWithAsset songAsset error error AVAssetTrack songTrack songAsset.tracks.. AVURLAsset songAsset NSError error nil AVAssetReader reader AVAssetReader alloc initWithAsset songAsset error error AVAssetTrack songTrack songAsset.tracks objectAtIndex 0 NSDictionary outputSettingsDict NSDictionary alloc initWithObjectsAndKeys.. NSError error nil AVAssetReader reader AVAssetReader alloc initWithAsset songAsset error error AVAssetTrack songTrack songAsset.tracks objectAtIndex 0 NSDictionary outputSettingsDict NSDictionary alloc initWithObjectsAndKeys NSNumber numberWithInt..

Combining two .caf files on iPhone

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

in our app void setUpAndAddAudioAtPath NSURL assetURL toComposition AVMutableComposition composition AVURLAsset songAsset AVURLAsset URLAssetWithURL assetURL options nil AVMutableCompositionTrack track composition addMutableTrackWithMediaType.. AVMediaTypeAudio preferredTrackID kCMPersistentTrackID_Invalid AVAssetTrack sourceAudioTrack songAsset tracksWithMediaType AVMediaTypeAudio objectAtIndex 0 NSError error nil BOOL ok NO CMTime startTime CMTimeMakeWithSeconds.. objectAtIndex 0 NSError error nil BOOL ok NO CMTime startTime CMTimeMakeWithSeconds 0 1 CMTime trackDuration songAsset.duration CMTime longestTime CMTimeMake 848896 44100 19.24 seconds CMTimeRange tRange CMTimeRangeMake startTime trackDuration..

Application crashed while importing songs from Ipod library in Iphone for iOs 5.0

http://stackoverflow.com/questions/8077725/application-crashed-while-importing-songs-from-ipod-library-in-iphone-for-ios-5

MPMediaItem item self showLoadingView NSURL assetURL item valueForProperty MPMediaItemPropertyAssetURL AVURLAsset songAsset AVURLAsset URLAssetWithURL assetURL options nil JP AVAssetExportSession exportSession AVAssetExportSession alloc initWithAsset.. URLAssetWithURL assetURL options nil JP AVAssetExportSession exportSession AVAssetExportSession alloc initWithAsset songAsset presetName AVAssetExportPresetPassthrough NSArray tracks songAsset tracksWithMediaType AVMediaTypeAudio AVAssetTrack track.. AVAssetExportSession alloc initWithAsset songAsset presetName AVAssetExportPresetPassthrough NSArray tracks songAsset tracksWithMediaType AVMediaTypeAudio AVAssetTrack track tracks objectAtIndex 0 id desc track.formatDescriptions objectAtIndex..