¡@

Home 

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

iphone Programming Glossary: mnumberbuffers

iPhone: AudioBufferList init and release

http://stackoverflow.com/questions/3767527/iphone-audiobufferlist-init-and-release

static_cast AudioBufferList calloc 1 offsetof AudioBufferList mBuffers sizeof AudioBuffer numBuffers bufferList mNumberBuffers numBuffers for UInt32 bufferIndex 0 bufferIndex bufferList mNumberBuffers bufferIndex bufferList mBuffers bufferIndex .mData.. sizeof AudioBuffer numBuffers bufferList mNumberBuffers numBuffers for UInt32 bufferIndex 0 bufferIndex bufferList mNumberBuffers bufferIndex bufferList mBuffers bufferIndex .mData static_cast void calloc capacityFrames bytesPerFrame bufferList mBuffers..

Audio Processing: Playing with volume level

http://stackoverflow.com/questions/3982723/audio-processing-playing-with-volume-level

bufferList malloc sizeof AudioBufferList sizeof AudioBuffer clientFormat.mChannelsPerFrame 1 bufferList mNumberBuffers clientFormat.mChannelsPerFrame for int ii 0 ii bufferList mNumberBuffers ii bufferList mBuffers ii .mDataByteSize sizeof.. clientFormat.mChannelsPerFrame 1 bufferList mNumberBuffers clientFormat.mChannelsPerFrame for int ii 0 ii bufferList mNumberBuffers ii bufferList mBuffers ii .mDataByteSize sizeof float numFrames bufferList mBuffers ii .mNumberChannels 1 bufferList mBuffers.. rFrames bufferList close the file err ExtAudioFileDispose audiofile process the audio for int ii 0 ii bufferList mNumberBuffers ii float fBuf float bufferList mBuffers ii .mData for int jj 0 jj rFrames jj fBuf fBuf ampScale fBuf open the file for..

ExtAudioFileWrite to m4a/aac failing on dual-core devices (ipad 2, iphone 4s)

http://stackoverflow.com/questions/8719865/extaudiofilewrite-to-m4a-aac-failing-on-dual-core-devices-ipad-2-iphone-4s

prep AllRenderData allData allRenderData writeBuffer malloc sizeof AudioBufferList 2 sizeof AudioBuffer writeBuffer mNumberBuffers 2 writeBuffer mBuffers 0 .mNumberChannels 1 writeBuffer mBuffers 0 .mDataByteSize bufferBytes writeBuffer mBuffers 0 .mData..