You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
379 B
15 lines
379 B
import CNDI
|
|
|
|
/// Process-wide NDI runtime.
|
|
public enum NDI {
|
|
/// Initializes the NDI library. Returns false if the CPU is unsupported.
|
|
public static func initialize() -> Bool {
|
|
NDIlib_initialize()
|
|
}
|
|
|
|
public static var version: String {
|
|
guard let cString = NDIlib_version() else { return "unknown" }
|
|
return String(cString: cString)
|
|
}
|
|
}
|