iphone Programming Glossary: songasset.tracks
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 return AVAssetReaderOutput assetReaderOutput AVAssetReaderAudioMixOutput assetReaderAudioMixOutputWithAudioTracks songAsset.tracks audioSettings nil retain if assetReader canAddOutput assetReaderOutput NSLog @ Incompatible Asser Reader Output return.. NSError error nil AVAssetReader reader AVAssetReader alloc initWithAsset songAsset error error AVAssetTrack songTrack songAsset.tracks objectAtIndex 0 AVAssetReaderTrackOutput output AVAssetReaderTrackOutput alloc initWithTrack songTrack outputSettings nil..
Help Fix Memory Leak release http://stackoverflow.com/questions/4914853/help-fix-memory-leak-release return AVAssetReaderOutput assetReaderOutput AVAssetReaderAudioMixOutput assetReaderAudioMixOutputWithAudioTracks songAsset.tracks audioSettings nil retain if assetReader canAddOutput assetReaderOutput NSLog @ can't add reader output... die return.. NO assetWriter startWriting assetReader startReading AVAssetTrack soundTrack songAsset.tracks objectAtIndex 0 CMTime startTime CMTimeMake 0 soundTrack.naturalTimeScale assetWriter startSessionAtSourceTime startTime..
Drawing waveform with AVAssetReader http://stackoverflow.com/questions/5032775/drawing-waveform-with-avassetreader NSError error nil AVAssetReader reader AVAssetReader alloc initWithAsset songAsset error error AVAssetTrack songTrack songAsset.tracks objectAtIndex 0 NSDictionary outputSettingsDict NSDictionary alloc initWithObjectsAndKeys NSNumber numberWithInt kAudioFormatLinearPCM.. NSError error nil AVAssetReader reader AVAssetReader alloc initWithAsset songAsset error error AVAssetTrack songTrack songAsset.tracks objectAtIndex 0 NSDictionary outputSettingsDict NSDictionary alloc initWithObjectsAndKeys NSNumber numberWithInt kAudioFormatLinearPCM..
|