iphone Programming Glossary: audiobufferlist.mbuffers
AVAssetReader and Audio Queue streaming problem http://stackoverflow.com/questions/4763598/avassetreader-and-audio-queue-streaming-problem sampBuffer NULL audioBufferList sizeof audioBufferList NULL NULL 0 blockBuffer AudioBuffer audioBuffer audioBufferList.mBuffers 0 memcpy inData 2 offsetSample audioBuffer.mData audioBuffer.mDataByteSize bytesToRead bytesToRead audioBuffer.mDataByteSize..
Reading audio samples via AVAssetReader http://stackoverflow.com/questions/4972677/reading-audio-samples-via-avassetreader buffer for int bufferCount 0 bufferCount audioBufferList.mNumberBuffers bufferCount SInt16 samples SInt16 audioBufferList.mBuffers bufferCount .mData for int i 0 i numSamplesInBuffer i amplitude for the sample is samples i assuming you have linear pcm..
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 audioBufferList NULL NULL 0 blockBuffer for int y 0 y audioBufferList.mNumberBuffers y AudioBuffer audioBuffer audioBufferList.mBuffers y Float32 frame audioBuffer.mData Float32 currentSample frame i data appendBytes frame length audioBuffer.mDataByteSize..
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 sizeof audioBufferList NULL NULL 0 blockBuffer for int y 0 y audioBufferList.mNumberBuffers y AudioBuffer audioBuffer audioBufferList.mBuffers y Float32 frame audioBuffer.mData NSLog @ Gonna write d audioBuffer.mDataByteSize crashes here data appendBytes frame length.. audioBufferList NULL data release continue for int y 0 y audioBufferList.mNumberBuffers y AudioBuffer audioBuffer audioBufferList.mBuffers y Float32 frame Float32 audioBuffer.mData data appendBytes frame length audioBuffer.mDataByteSize totalBuff CFRelease blockBuffer..
|