Tag: audiobuffer

如何在iPhone中使用AudioBuffer在本地录制从麦克风录制的audio文件?

我是新的audio框架,任何人都可以帮我写从麦克风捕捉正在播放的audio文件? 下面是通过iphone扬声器播放麦克风input的代码,现在我想将audio保存在iPhone中供将来使用。 我从这里find代码来使用麦克风录制audiohttp://www.stefanpopp.de/2011/capture-iphone-microphone/ /** Code start from here for playing the recorded voice */ static OSStatus playbackCallback(void *inRefCon, AudioUnitRenderActionFlags *ioActionFlags, const AudioTimeStamp *inTimeStamp, UInt32 inBusNumber, UInt32 inNumberFrames, AudioBufferList *ioData) { /** This is the reference to the object who owns the callback. */ AudioProcessor *audioProcessor = (AudioProcessor*) inRefCon; // iterate over incoming stream an copy […]