¡@

Home 

2014/10/15 ¤U¤È 10:04:44

iphone Programming Glossary: bufferlist

Audio Processing: Playing with volume level

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

audiofile kExtAudioFileProperty_FileLengthFrames size numFrames create the buffers for reading in data AudioBufferList bufferList malloc sizeof AudioBufferList sizeof AudioBuffer clientFormat.mChannelsPerFrame 1 bufferList mNumberBuffers clientFormat.mChannelsPerFrame.. in data AudioBufferList 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.. AudioBuffer 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..

Can anybody help me in recording iPhone output sound through Audio Unit

http://stackoverflow.com/questions/8615358/can-anybody-help-me-in-recording-iphone-output-sound-through-audio-unit

ioData NSLog @ callback if ioActionFlags kAudioUnitRenderAction_PostRender inBusNumber 0 AudioBufferList bufferList Fill this up with buffers you will want to malloc it as it's a dynamic length list EffectState effectState EffectState inRefCon.. BELOW I GET THE ERROR status AudioUnitRender rioUnit ioActionFlags inTimeStamp inBusNumber inNumberFrames bufferList if noErr status NSLog @ AudioUnitRender error return noErr Now we have the samples we just read sitting in buffers in bufferList.. if noErr status NSLog @ AudioUnitRender error return noErr Now we have the samples we just read sitting in buffers in bufferList ExtAudioFileWriteAsync effectState audioFileRef inNumberFrames bufferList return noErr then stop Recording void stopRecord..