[英]'init()' is deprecated: init() will be removed in Swift 3. Use `nil`
AudioUnit
is a typealias of AudioComponentInstance
which itself is a typealias of COpaquePointer
. AudioUnit
是的typealias AudioComponentInstance
这本身就是一个typealias COpaquePointer
。 Initializing pointers will be removed with Swift 3.0 , just set the variable to nil
. 使用Swift 3.0删除初始化指针 ,只需将变量设置为
nil
。
nil
and AudioUnit()
should do the same thing. nil
和AudioUnit()
应该做同样的事情。 If your program is crashing with nil
, you probably have a bug somewhere else. 如果您的程序崩溃为
nil
,则可能在其他地方存在错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.