iphone Programming Glossary: cmblockbufferref
Writing video + generated audio to AVAssetWriterInput, audio stuttering http://stackoverflow.com/questions/12187124/writing-video-generated-audio-to-avassetwriterinput-audio-stuttering WARNING writeAudioBuffer dropped frame after wait limit reached. return 0 NSLog @ writeAudioBuffer OSStatus status CMBlockBufferRef bbuf NULL CMSampleBufferRef sbuf NULL size_t buflen n nchans sizeof float Create sample buffer for adding to the audio..
AVAssetReader and Audio Queue streaming problem http://stackoverflow.com/questions/4763598/avassetreader-and-audio-queue-streaming-problem ar status AudioQueueStop pplayerState mQueue false pplayerState mIsRunning NO return AudioBufferList audioBufferList CMBlockBufferRef blockBuffer CMSampleBufferGetAudioBufferListWithRetainedBlockBuffer sampBuffer NULL audioBufferList sizeof audioBufferList..
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 reader.outputs objectAtIndex 0 CMSampleBufferRef sampleBufferRef trackOutput copyNextSampleBuffer if sampleBufferRef CMBlockBufferRef blockBufferRef CMSampleBufferGetDataBuffer sampleBufferRef size_t length CMBlockBufferGetDataLength blockBufferRef UInt8..
Reading audio samples via AVAssetReader http://stackoverflow.com/questions/4972677/reading-audio-samples-via-avassetreader avfoundation share improve this question To expand on @amrox's answer you can get an AudioBufferList from the CMBlockBufferRef e.g. CMItemCount numSamplesInBuffer CMSampleBufferGetNumSamples buffer AudioBufferList audioBufferList CMSampleBufferGetAudioBufferListWithRetainedBlockBuffer..
Drawing waveform with AVAssetReader http://stackoverflow.com/questions/5032775/drawing-waveform-with-avassetreader reader.outputs objectAtIndex 0 CMSampleBufferRef sampleBufferRef trackOutput copyNextSampleBuffer if sampleBufferRef CMBlockBufferRef blockBufferRef CMSampleBufferGetDataBuffer sampleBufferRef size_t length CMBlockBufferGetDataLength blockBufferRef totalBytes.. reader.outputs objectAtIndex 0 CMSampleBufferRef sampleBufferRef trackOutput copyNextSampleBuffer if sampleBufferRef CMBlockBufferRef blockBufferRef CMSampleBufferGetDataBuffer sampleBufferRef size_t length CMBlockBufferGetDataLength blockBufferRef totalBytes..
How to copy songs from iPod Library to app and play with AVAudioPlayer? http://stackoverflow.com/questions/7472141/how-to-copy-songs-from-ipod-library-to-app-and-play-with-avaudioplayer break copy data to file read next one AudioBufferList audioBufferList NSMutableData data NSMutableData alloc init CMBlockBufferRef blockBuffer CMSampleBufferGetAudioBufferListWithRetainedBlockBuffer ref NULL audioBufferList sizeof audioBufferList NULL..
iOS 5.0 crash when reading data from an AVAssetReaderOutput http://stackoverflow.com/questions/7812394/ios-5-0-crash-when-reading-data-from-an-avassetreaderoutput NULL break copy data to file read next one AudioBufferList audioBufferList NSMutableData data NSMutableData alloc init CMBlockBufferRef blockBuffer CMSampleBufferGetAudioBufferListWithRetainedBlockBuffer ref NULL audioBufferList sizeof audioBufferList NULL.. NULL break copy data to file read next one AudioBufferList audioBufferList NSMutableData data NSMutableData alloc init CMBlockBufferRef blockBuffer CMSampleBufferGetAudioBufferListWithRetainedBlockBuffer ref NULL audioBufferList sizeof audioBufferList NULL..
|