升级到xcode 7.3闭包引用不行

时间:2016-05-21 22:42:31

标签: ios xcode swift

以前(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

非常感谢任何帮助。

0 个答案:

没有答案