以前(Xcode 7.2.1)有以下工作代码:
let AQInputCallback: AudioQueueInputCallback = {(inUserData :UnsafeMutablePointer<Void>, inQueue :AudioQueueRef, inBuffer :AudioQueueBufferRef, inStartTime :UnsafePointer<AudioTimeStamp>, inNumPackets :UInt32, inPacketDesc :UnsafePointer<AudioStreamPacketDescription>) -> () in
并将其引用为:
error = AudioQueueNewInput(&recordFormat, AQInputCallback, &recorder, nil, nil, 0, &self.inputQueue)
升级到Xcode 7.3后,此代码抛出:
命令因信号失败:分段错误:11
非常感谢任何帮助。