Intermittent crash in recordingCallback() on app launch
问题 My iOS app (using openFrameworks) crashes 30-40% of the time on launch on this line: if(soundInputPtr!=NULL) soundInputPtr->audioIn(tempBuffer, ioData->mBuffers[i].mDataByteSize/2, 1); which is inside the larger function in ofxiPhoneSoundStream.m static OSStatus recordingCallback(void *inRefCon, AudioUnitRenderActionFlags *ioActionFlags, const AudioTimeStamp *inTimeStamp, UInt32 inBusNumber, UInt32 inNumberFrames, AudioBufferList *ioData) { I am doing audio setup with ofSoundStreamSetup(0, 1,