CoreMIDI Changes for Swift
CoreMIDI
Removed MIDIDriverInterface.init(_reserved: UnsafeMutablePointer<Void>, QueryInterface: ((UnsafeMutablePointer<Void>, REFIID, UnsafeMutablePointer<LPVOID>) -> HRESULT)!, AddRef: ((UnsafeMutablePointer<Void>) -> ULONG)!, Release: ((UnsafeMutablePointer<Void>) -> ULONG)!, FindDevices: ((MIDIDriverRef, MIDIDeviceListRef) -> OSStatus)!, Start: ((MIDIDriverRef, MIDIDeviceListRef) -> OSStatus)!, Stop: ((MIDIDriverRef) -> OSStatus)!, Configure: ((MIDIDriverRef, MIDIDeviceRef) -> OSStatus)!, Send: ((MIDIDriverRef, UnsafePointer<MIDIPacketList>, UnsafeMutablePointer<Void>, UnsafeMutablePointer<Void>) -> OSStatus)!, EnableSource: ((MIDIDriverRef, MIDIEndpointRef, DarwinBoolean) -> OSStatus)!, Flush: ((MIDIDriverRef, MIDIEndpointRef, UnsafeMutablePointer<Void>, UnsafeMutablePointer<Void>) -> OSStatus)!, Monitor: ((MIDIDriverRef, MIDIEndpointRef, UnsafePointer<MIDIPacketList>) -> OSStatus)!)
Added MIDIDriverInterface.init(_reserved: UnsafeMutableRawPointer!, QueryInterface: ( (UnsafeMutableRawPointer?, REFIID, UnsafeMutablePointer<LPVOID?>?) -> HRESULT)!, AddRef: ( (UnsafeMutableRawPointer?) -> ULONG)!, Release: ( (UnsafeMutableRawPointer?) -> ULONG)!, FindDevices: ( (MIDIDriverRef?, MIDIDeviceListRef) -> OSStatus)!, Start: ( (MIDIDriverRef?, MIDIDeviceListRef) -> OSStatus)!, Stop: ( (MIDIDriverRef?) -> OSStatus)!, Configure: ( (MIDIDriverRef?, MIDIDeviceRef) -> OSStatus)!, Send: ( (MIDIDriverRef?, UnsafePointer<MIDIPacketList>?, UnsafeMutableRawPointer?, UnsafeMutableRawPointer?) -> OSStatus)!, EnableSource: ( (MIDIDriverRef?, MIDIEndpointRef, DarwinBoolean) -> OSStatus)!, Flush: ( (MIDIDriverRef?, MIDIEndpointRef, UnsafeMutableRawPointer?, UnsafeMutableRawPointer?) -> OSStatus)!, Monitor: ( (MIDIDriverRef?, MIDIEndpointRef, UnsafePointer<MIDIPacketList>?) -> OSStatus)!)
Modified MIDIDriverInterface [struct]
| Declaration | |
|---|---|
| From | struct MIDIDriverInterface {
var _reserved: UnsafeMutablePointer<Void>
var QueryInterface: ((UnsafeMutablePointer<Void>, REFIID, UnsafeMutablePointer<LPVOID>) -> HRESULT)!
var AddRef: ((UnsafeMutablePointer<Void>) -> ULONG)!
var Release: ((UnsafeMutablePointer<Void>) -> ULONG)!
var FindDevices: ((MIDIDriverRef, MIDIDeviceListRef) -> OSStatus)!
var Start: ((MIDIDriverRef, MIDIDeviceListRef) -> OSStatus)!
var Stop: ((MIDIDriverRef) -> OSStatus)!
var Configure: ((MIDIDriverRef, MIDIDeviceRef) -> OSStatus)!
var Send: ((MIDIDriverRef, UnsafePointer<MIDIPacketList>, UnsafeMutablePointer<Void>, UnsafeMutablePointer<Void>) -> OSStatus)!
var EnableSource: ((MIDIDriverRef, MIDIEndpointRef, DarwinBoolean) -> OSStatus)!
var Flush: ((MIDIDriverRef, MIDIEndpointRef, UnsafeMutablePointer<Void>, UnsafeMutablePointer<Void>) -> OSStatus)!
var Monitor: ((MIDIDriverRef, MIDIEndpointRef, UnsafePointer<MIDIPacketList>) -> OSStatus)!
init()
init(_reserved _reserved: UnsafeMutablePointer<Void>, QueryInterface QueryInterface: ((UnsafeMutablePointer<Void>, REFIID, UnsafeMutablePointer<LPVOID>) -> HRESULT)!, AddRef AddRef: ((UnsafeMutablePointer<Void>) -> ULONG)!, Release Release: ((UnsafeMutablePointer<Void>) -> ULONG)!, FindDevices FindDevices: ((MIDIDriverRef, MIDIDeviceListRef) -> OSStatus)!, Start Start: ((MIDIDriverRef, MIDIDeviceListRef) -> OSStatus)!, Stop Stop: ((MIDIDriverRef) -> OSStatus)!, Configure Configure: ((MIDIDriverRef, MIDIDeviceRef) -> OSStatus)!, Send Send: ((MIDIDriverRef, UnsafePointer<MIDIPacketList>, UnsafeMutablePointer<Void>, UnsafeMutablePointer<Void>) -> OSStatus)!, EnableSource EnableSource: ((MIDIDriverRef, MIDIEndpointRef, DarwinBoolean) -> OSStatus)!, Flush Flush: ((MIDIDriverRef, MIDIEndpointRef, UnsafeMutablePointer<Void>, UnsafeMutablePointer<Void>) -> OSStatus)!, Monitor Monitor: ((MIDIDriverRef, MIDIEndpointRef, UnsafePointer<MIDIPacketList>) -> OSStatus)!)
} |
| To | struct MIDIDriverInterface {
var _reserved: UnsafeMutableRawPointer!
var QueryInterface: ((UnsafeMutableRawPointer?, REFIID, UnsafeMutablePointer<LPVOID?>?) -> HRESULT)!
var AddRef: ((UnsafeMutableRawPointer?) -> ULONG)!
var Release: ((UnsafeMutableRawPointer?) -> ULONG)!
var FindDevices: ((MIDIDriverRef?, MIDIDeviceListRef) -> OSStatus)!
var Start: ((MIDIDriverRef?, MIDIDeviceListRef) -> OSStatus)!
var Stop: ((MIDIDriverRef?) -> OSStatus)!
var Configure: ((MIDIDriverRef?, MIDIDeviceRef) -> OSStatus)!
var Send: ((MIDIDriverRef?, UnsafePointer<MIDIPacketList>?, UnsafeMutableRawPointer?, UnsafeMutableRawPointer?) -> OSStatus)!
var EnableSource: ((MIDIDriverRef?, MIDIEndpointRef, DarwinBoolean) -> OSStatus)!
var Flush: ((MIDIDriverRef?, MIDIEndpointRef, UnsafeMutableRawPointer?, UnsafeMutableRawPointer?) -> OSStatus)!
var Monitor: ((MIDIDriverRef?, MIDIEndpointRef, UnsafePointer<MIDIPacketList>?) -> OSStatus)!
init()
init(_reserved _reserved: UnsafeMutableRawPointer!, QueryInterface QueryInterface: (@escaping (UnsafeMutableRawPointer?, REFIID, UnsafeMutablePointer<LPVOID?>?) -> HRESULT)!, AddRef AddRef: (@escaping (UnsafeMutableRawPointer?) -> ULONG)!, Release Release: (@escaping (UnsafeMutableRawPointer?) -> ULONG)!, FindDevices FindDevices: (@escaping (MIDIDriverRef?, MIDIDeviceListRef) -> OSStatus)!, Start Start: (@escaping (MIDIDriverRef?, MIDIDeviceListRef) -> OSStatus)!, Stop Stop: (@escaping (MIDIDriverRef?) -> OSStatus)!, Configure Configure: (@escaping (MIDIDriverRef?, MIDIDeviceRef) -> OSStatus)!, Send Send: (@escaping (MIDIDriverRef?, UnsafePointer<MIDIPacketList>?, UnsafeMutableRawPointer?, UnsafeMutableRawPointer?) -> OSStatus)!, EnableSource EnableSource: (@escaping (MIDIDriverRef?, MIDIEndpointRef, DarwinBoolean) -> OSStatus)!, Flush Flush: (@escaping (MIDIDriverRef?, MIDIEndpointRef, UnsafeMutableRawPointer?, UnsafeMutableRawPointer?) -> OSStatus)!, Monitor Monitor: (@escaping (MIDIDriverRef?, MIDIEndpointRef, UnsafePointer<MIDIPacketList>?) -> OSStatus)!)
} |
Modified MIDIDriverInterface.AddRef
| Declaration | |
|---|---|
| From | var AddRef: ((UnsafeMutablePointer<Void>) -> ULONG)! |
| To | var AddRef: ((UnsafeMutableRawPointer?) -> ULONG)! |
Modified MIDIDriverInterface.Configure
| Declaration | |
|---|---|
| From | var Configure: ((MIDIDriverRef, MIDIDeviceRef) -> OSStatus)! |
| To | var Configure: ((MIDIDriverRef?, MIDIDeviceRef) -> OSStatus)! |
Modified MIDIDriverInterface.EnableSource
| Declaration | |
|---|---|
| From | var EnableSource: ((MIDIDriverRef, MIDIEndpointRef, DarwinBoolean) -> OSStatus)! |
| To | var EnableSource: ((MIDIDriverRef?, MIDIEndpointRef, DarwinBoolean) -> OSStatus)! |
Modified MIDIDriverInterface.FindDevices
| Declaration | |
|---|---|
| From | var FindDevices: ((MIDIDriverRef, MIDIDeviceListRef) -> OSStatus)! |
| To | var FindDevices: ((MIDIDriverRef?, MIDIDeviceListRef) -> OSStatus)! |
Modified MIDIDriverInterface.Flush
| Declaration | |
|---|---|
| From | var Flush: ((MIDIDriverRef, MIDIEndpointRef, UnsafeMutablePointer<Void>, UnsafeMutablePointer<Void>) -> OSStatus)! |
| To | var Flush: ((MIDIDriverRef?, MIDIEndpointRef, UnsafeMutableRawPointer?, UnsafeMutableRawPointer?) -> OSStatus)! |
Modified MIDIDriverInterface.Monitor
| Declaration | |
|---|---|
| From | var Monitor: ((MIDIDriverRef, MIDIEndpointRef, UnsafePointer<MIDIPacketList>) -> OSStatus)! |
| To | var Monitor: ((MIDIDriverRef?, MIDIEndpointRef, UnsafePointer<MIDIPacketList>?) -> OSStatus)! |
Modified MIDIDriverInterface.QueryInterface
| Declaration | |
|---|---|
| From | var QueryInterface: ((UnsafeMutablePointer<Void>, REFIID, UnsafeMutablePointer<LPVOID>) -> HRESULT)! |
| To | var QueryInterface: ((UnsafeMutableRawPointer?, REFIID, UnsafeMutablePointer<LPVOID?>?) -> HRESULT)! |
Modified MIDIDriverInterface.Release
| Declaration | |
|---|---|
| From | var Release: ((UnsafeMutablePointer<Void>) -> ULONG)! |
| To | var Release: ((UnsafeMutableRawPointer?) -> ULONG)! |
Modified MIDIDriverInterface.Send
| Declaration | |
|---|---|
| From | var Send: ((MIDIDriverRef, UnsafePointer<MIDIPacketList>, UnsafeMutablePointer<Void>, UnsafeMutablePointer<Void>) -> OSStatus)! |
| To | var Send: ((MIDIDriverRef?, UnsafePointer<MIDIPacketList>?, UnsafeMutableRawPointer?, UnsafeMutableRawPointer?) -> OSStatus)! |
Modified MIDIDriverInterface.Start
| Declaration | |
|---|---|
| From | var Start: ((MIDIDriverRef, MIDIDeviceListRef) -> OSStatus)! |
| To | var Start: ((MIDIDriverRef?, MIDIDeviceListRef) -> OSStatus)! |
Modified MIDIDriverInterface.Stop
| Declaration | |
|---|---|
| From | var Stop: ((MIDIDriverRef) -> OSStatus)! |
| To | var Stop: ((MIDIDriverRef?) -> OSStatus)! |
Modified MIDINetworkConnection
| Declaration | Protocols | |
|---|---|---|
| From | class MIDINetworkConnection : NSObject {
convenience init(host host: MIDINetworkHost)
class func connectionWithHost(_ host: MIDINetworkHost) -> Self
var host: MIDINetworkHost { get }
} | -- |
| To | class MIDINetworkConnection : NSObject {
convenience init(host host: MIDINetworkHost)
class func withHost(_ host: MIDINetworkHost) -> Self
var host: MIDINetworkHost { get }
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension MIDINetworkConnection : CVarArg {
}
extension MIDINetworkConnection : Equatable, Hashable {
var hashValue: Int { get }
} | CVarArg, Equatable, Hashable |
Modified MIDINetworkConnectionPolicy [enum]
| Declaration | |
|---|---|
| From | enum MIDINetworkConnectionPolicy : UInt {
case NoOne
case HostsInContactList
case Anyone
} |
| To | enum MIDINetworkConnectionPolicy : UInt {
case noOne
case hostsInContactList
case anyone
} |
Modified MIDINetworkConnectionPolicy.anyone
| Declaration | |
|---|---|
| From | case Anyone |
| To | case anyone |
| Declaration | |
|---|---|
| From | case HostsInContactList |
| To | case hostsInContactList |
Modified MIDINetworkConnectionPolicy.noOne
| Declaration | |
|---|---|
| From | case NoOne |
| To | case noOne |
Modified MIDINetworkHost
| Declaration | Protocols | |
|---|---|---|
| From | class MIDINetworkHost : NSObject {
convenience init(name name: String, address address: String, port port: Int)
class func hostWithName(_ name: String, address address: String, port port: Int) -> Self
convenience init(name name: String, netService netService: NSNetService)
class func hostWithName(_ name: String, netService netService: NSNetService) -> Self
convenience init(name name: String, netServiceName netServiceName: String, netServiceDomain netServiceDomain: String)
class func hostWithName(_ name: String, netServiceName netServiceName: String, netServiceDomain netServiceDomain: String) -> Self
func hasSameAddressAs(_ other: MIDINetworkHost) -> Bool
var name: String { get }
var address: String { get }
var port: Int { get }
var netServiceName: String? { get }
var netServiceDomain: String? { get }
} | -- |
| To | class MIDINetworkHost : NSObject {
convenience init(name name: String, address address: String, port port: Int)
class func withName(_ name: String, address address: String, port port: Int) -> Self
convenience init(name name: String, netService netService: NetService)
class func withName(_ name: String, netService netService: NetService) -> Self
convenience init(name name: String, netServiceName netServiceName: String, netServiceDomain netServiceDomain: String)
class func withName(_ name: String, netServiceName netServiceName: String, netServiceDomain netServiceDomain: String) -> Self
func hasSameAddress(as other: MIDINetworkHost) -> Bool
var name: String { get }
var address: String { get }
var port: Int { get }
var netServiceName: String? { get }
var netServiceDomain: String? { get }
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension MIDINetworkHost : CVarArg {
}
extension MIDINetworkHost : Equatable, Hashable {
var hashValue: Int { get }
} | CVarArg, Equatable, Hashable |
| Declaration | |
|---|---|
| From | func hasSameAddressAs(_ other: MIDINetworkHost) -> Bool |
| To | func hasSameAddress(as other: MIDINetworkHost) -> Bool |
| Declaration | |
|---|---|
| From | convenience init(name name: String, netService netService: NSNetService) |
| To | convenience init(name name: String, netService netService: NetService) |
Modified MIDINetworkSession
| Declaration | Protocols | |
|---|---|---|
| From | class MIDINetworkSession : NSObject {
class func defaultSession() -> MIDINetworkSession
var enabled: Bool
var networkPort: Int { get }
var networkName: String { get }
var localName: String { get }
var connectionPolicy: MIDINetworkConnectionPolicy
func contacts() -> Set<MIDINetworkHost>
func addContact(_ contact: MIDINetworkHost) -> Bool
func removeContact(_ contact: MIDINetworkHost) -> Bool
func connections() -> Set<MIDINetworkConnection>
func addConnection(_ connection: MIDINetworkConnection) -> Bool
func removeConnection(_ connection: MIDINetworkConnection) -> Bool
func sourceEndpoint() -> MIDIEndpointRef
func destinationEndpoint() -> MIDIEndpointRef
} | -- |
| To | class MIDINetworkSession : NSObject {
class func `default`() -> MIDINetworkSession
var isEnabled: Bool
var networkPort: Int { get }
var networkName: String { get }
var localName: String { get }
var connectionPolicy: MIDINetworkConnectionPolicy
func contacts() -> Set<MIDINetworkHost>
func addContact(_ contact: MIDINetworkHost) -> Bool
func removeContact(_ contact: MIDINetworkHost) -> Bool
func connections() -> Set<MIDINetworkConnection>
func addConnection(_ connection: MIDINetworkConnection) -> Bool
func removeConnection(_ connection: MIDINetworkConnection) -> Bool
func sourceEndpoint() -> MIDIEndpointRef
func destinationEndpoint() -> MIDIEndpointRef
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension MIDINetworkSession : CVarArg {
}
extension MIDINetworkSession : Equatable, Hashable {
var hashValue: Int { get }
} | CVarArg, Equatable, Hashable |
Modified MIDINetworkSession.default() [class]
| Declaration | |
|---|---|
| From | class func defaultSession() -> MIDINetworkSession |
| To | class func `default`() -> MIDINetworkSession |
Modified MIDINetworkSession.isEnabled
| Declaration | |
|---|---|
| From | var enabled: Bool |
| To | var isEnabled: Bool |
Modified MIDINotificationMessageID [enum]
| Declaration | |
|---|---|
| From | enum MIDINotificationMessageID : Int32 {
case MsgSetupChanged
case MsgObjectAdded
case MsgObjectRemoved
case MsgPropertyChanged
case MsgThruConnectionsChanged
case MsgSerialPortOwnerChanged
case MsgIOError
} |
| To | enum MIDINotificationMessageID : Int32 {
case msgSetupChanged
case msgObjectAdded
case msgObjectRemoved
case msgPropertyChanged
case msgThruConnectionsChanged
case msgSerialPortOwnerChanged
case msgIOError
} |
Modified MIDINotificationMessageID.msgIOError
| Declaration | |
|---|---|
| From | case MsgIOError |
| To | case msgIOError |
| Declaration | |
|---|---|
| From | case MsgObjectAdded |
| To | case msgObjectAdded |
| Declaration | |
|---|---|
| From | case MsgObjectRemoved |
| To | case msgObjectRemoved |
| Declaration | |
|---|---|
| From | case MsgPropertyChanged |
| To | case msgPropertyChanged |
| Declaration | |
|---|---|
| From | case MsgSerialPortOwnerChanged |
| To | case msgSerialPortOwnerChanged |
| Declaration | |
|---|---|
| From | case MsgSetupChanged |
| To | case msgSetupChanged |
| Declaration | |
|---|---|
| From | case MsgThruConnectionsChanged |
| To | case msgThruConnectionsChanged |
Modified MIDIObjectType [enum]
| Declaration | |
|---|---|
| From | enum MIDIObjectType : Int32 {
case Other
case Device
case Entity
case Source
case Destination
case ExternalDevice
case ExternalEntity
case ExternalSource
case ExternalDestination
} |
| To | enum MIDIObjectType : Int32 {
case other
case device
case entity
case source
case destination
case externalDevice
case externalEntity
case externalSource
case externalDestination
} |
Modified MIDIObjectType.destination
| Declaration | |
|---|---|
| From | case Destination |
| To | case destination |
Modified MIDIObjectType.device
| Declaration | |
|---|---|
| From | case Device |
| To | case device |
Modified MIDIObjectType.entity
| Declaration | |
|---|---|
| From | case Entity |
| To | case entity |
Modified MIDIObjectType.externalDestination
| Declaration | |
|---|---|
| From | case ExternalDestination |
| To | case externalDestination |
Modified MIDIObjectType.externalDevice
| Declaration | |
|---|---|
| From | case ExternalDevice |
| To | case externalDevice |
Modified MIDIObjectType.externalEntity
| Declaration | |
|---|---|
| From | case ExternalEntity |
| To | case externalEntity |
Modified MIDIObjectType.externalSource
| Declaration | |
|---|---|
| From | case ExternalSource |
| To | case externalSource |
Modified MIDIObjectType.other
| Declaration | |
|---|---|
| From | case Other |
| To | case other |
Modified MIDIObjectType.source
| Declaration | |
|---|---|
| From | case Source |
| To | case source |
Modified MIDISysexSendRequest [struct]
| Declaration | |
|---|---|
| From | struct MIDISysexSendRequest {
var destination: MIDIEndpointRef
var data: UnsafePointer<UInt8>
var bytesToSend: UInt32
var complete: DarwinBoolean
var reserved: (UInt8, UInt8, UInt8)
var completionProc: MIDICompletionProc
var completionRefCon: UnsafeMutablePointer<Void>
} |
| To | struct MIDISysexSendRequest {
var destination: MIDIEndpointRef
var data: UnsafePointer<UInt8>
var bytesToSend: UInt32
var complete: DarwinBoolean
var reserved: (UInt8, UInt8, UInt8)
var completionProc: CoreMIDI.MIDICompletionProc
var completionRefCon: UnsafeMutableRawPointer?
} |
Modified MIDISysexSendRequest.completionProc
| Declaration | |
|---|---|
| From | var completionProc: MIDICompletionProc |
| To | var completionProc: CoreMIDI.MIDICompletionProc |
| Declaration | |
|---|---|
| From | var completionRefCon: UnsafeMutablePointer<Void> |
| To | var completionRefCon: UnsafeMutableRawPointer? |
Modified MIDITransformControlType [enum]
| Declaration | |
|---|---|
| From | enum MIDITransformControlType : UInt8 {
case ControlType_7Bit
case ControlType_14Bit
case ControlType_7BitRPN
case ControlType_14BitRPN
case ControlType_7BitNRPN
case ControlType_14BitNRPN
} |
| To | enum MIDITransformControlType : UInt8 {
case controlType_7Bit
case controlType_14Bit
case controlType_7BitRPN
case controlType_14BitRPN
case controlType_7BitNRPN
case controlType_14BitNRPN
} |
| Declaration | |
|---|---|
| From | case ControlType_14Bit |
| To | case controlType_14Bit |
| Declaration | |
|---|---|
| From | case ControlType_14BitNRPN |
| To | case controlType_14BitNRPN |
| Declaration | |
|---|---|
| From | case ControlType_14BitRPN |
| To | case controlType_14BitRPN |
| Declaration | |
|---|---|
| From | case ControlType_7Bit |
| To | case controlType_7Bit |
| Declaration | |
|---|---|
| From | case ControlType_7BitNRPN |
| To | case controlType_7BitNRPN |
| Declaration | |
|---|---|
| From | case ControlType_7BitRPN |
| To | case controlType_7BitRPN |
Modified MIDITransformType [enum]
| Declaration | |
|---|---|
| From | enum MIDITransformType : UInt16 {
case None
case FilterOut
case MapControl
case Add
case Scale
case MinValue
case MaxValue
case MapValue
} |
| To | enum MIDITransformType : UInt16 {
case none
case filterOut
case mapControl
case add
case scale
case minValue
case maxValue
case mapValue
} |
Modified MIDITransformType.add
| Declaration | |
|---|---|
| From | case Add |
| To | case add |
Modified MIDITransformType.filterOut
| Declaration | |
|---|---|
| From | case FilterOut |
| To | case filterOut |
Modified MIDITransformType.mapControl
| Declaration | |
|---|---|
| From | case MapControl |
| To | case mapControl |
Modified MIDITransformType.mapValue
| Declaration | |
|---|---|
| From | case MapValue |
| To | case mapValue |
Modified MIDITransformType.maxValue
| Declaration | |
|---|---|
| From | case MaxValue |
| To | case maxValue |
Modified MIDITransformType.minValue
| Declaration | |
|---|---|
| From | case MinValue |
| To | case minValue |
Modified MIDITransformType.none
| Declaration | |
|---|---|
| From | case None |
| To | case none |
Modified MIDITransformType.scale
| Declaration | |
|---|---|
| From | case Scale |
| To | case scale |
| Declaration | |
|---|---|
| From | func MIDIClientCreate(_ name: CFString, _ notifyProc: MIDINotifyProc?, _ notifyRefCon: UnsafeMutablePointer<Void>, _ outClient: UnsafeMutablePointer<MIDIClientRef>) -> OSStatus |
| To | func MIDIClientCreate(_ name: CFString, _ notifyProc: CoreMIDI.MIDINotifyProc?, _ notifyRefCon: UnsafeMutableRawPointer?, _ outClient: UnsafeMutablePointer<MIDIClientRef>) -> OSStatus |
| Declaration | |
|---|---|
| From | func MIDIClientCreateWithBlock(_ name: CFString, _ outClient: UnsafeMutablePointer<MIDIClientRef>, _ notifyBlock: MIDINotifyBlock?) -> OSStatus |
| To | func MIDIClientCreateWithBlock(_ name: CFString, _ outClient: UnsafeMutablePointer<MIDIClientRef>, _ notifyBlock: CoreMIDI.MIDINotifyBlock?) -> OSStatus |
Modified MIDICompletionProc
| Declaration | |
|---|---|
| From | typealias MIDICompletionProc = (UnsafeMutablePointer<MIDISysexSendRequest>) -> Void |
| To | typealias MIDICompletionProc = (UnsafeMutablePointer<MIDISysexSendRequest>) -> Swift.Void |
| Declaration | |
|---|---|
| From | func MIDIDestinationCreate(_ client: MIDIClientRef, _ name: CFString, _ readProc: MIDIReadProc, _ refCon: UnsafeMutablePointer<Void>, _ outDest: UnsafeMutablePointer<MIDIEndpointRef>) -> OSStatus |
| To | func MIDIDestinationCreate(_ client: MIDIClientRef, _ name: CFString, _ readProc: CoreMIDI.MIDIReadProc, _ refCon: UnsafeMutableRawPointer?, _ outDest: UnsafeMutablePointer<MIDIEndpointRef>) -> OSStatus |
| Declaration | |
|---|---|
| From | func MIDIDestinationCreateWithBlock(_ client: MIDIClientRef, _ name: CFString, _ outDest: UnsafeMutablePointer<MIDIEndpointRef>, _ readBlock: MIDIReadBlock) -> OSStatus |
| To | func MIDIDestinationCreateWithBlock(_ client: MIDIClientRef, _ name: CFString, _ outDest: UnsafeMutablePointer<MIDIEndpointRef>, _ readBlock: CoreMIDI.MIDIReadBlock) -> OSStatus |
| Declaration | |
|---|---|
| From | func MIDIDeviceCreate(_ owner: MIDIDriverRef, _ name: CFString!, _ manufacturer: CFString!, _ model: CFString!, _ outDevice: UnsafeMutablePointer<MIDIDeviceRef>) -> OSStatus |
| To | func MIDIDeviceCreate(_ owner: MIDIDriverRef!, _ name: CFString!, _ manufacturer: CFString!, _ model: CFString!, _ outDevice: UnsafeMutablePointer<MIDIDeviceRef>!) -> OSStatus |
Modified MIDIDriverRef
| Declaration | |
|---|---|
| From | typealias MIDIDriverRef = UnsafeMutablePointer<UnsafeMutablePointer<MIDIDriverInterface>> |
| To | typealias MIDIDriverRef = UnsafeMutablePointer<UnsafeMutablePointer<MIDIDriverInterface>?> |
Modified MIDIEndpointGetEntity(_: MIDIEndpointRef, _: UnsafeMutablePointer<MIDIEntityRef>?) -> OSStatus
| Declaration | |
|---|---|
| From | func MIDIEndpointGetEntity(_ inEndpoint: MIDIEndpointRef, _ outEntity: UnsafeMutablePointer<MIDIEntityRef>) -> OSStatus |
| To | func MIDIEndpointGetEntity(_ inEndpoint: MIDIEndpointRef, _ outEntity: UnsafeMutablePointer<MIDIEntityRef>?) -> OSStatus |
| Declaration | |
|---|---|
| From | func MIDIEndpointGetRefCons(_ endpt: MIDIEndpointRef, _ ref1: UnsafeMutablePointer<UnsafeMutablePointer<Void>>, _ ref2: UnsafeMutablePointer<UnsafeMutablePointer<Void>>) -> OSStatus |
| To | func MIDIEndpointGetRefCons(_ endpt: MIDIEndpointRef, _ ref1: UnsafeMutablePointer<UnsafeMutableRawPointer?>!, _ ref2: UnsafeMutablePointer<UnsafeMutableRawPointer?>!) -> OSStatus |
| Declaration | |
|---|---|
| From | func MIDIEndpointSetRefCons(_ endpt: MIDIEndpointRef, _ ref1: UnsafeMutablePointer<Void>, _ ref2: UnsafeMutablePointer<Void>) -> OSStatus |
| To | func MIDIEndpointSetRefCons(_ endpt: MIDIEndpointRef, _ ref1: UnsafeMutableRawPointer!, _ ref2: UnsafeMutableRawPointer!) -> OSStatus |
| Declaration | |
|---|---|
| From | func MIDIEntityGetDevice(_ inEntity: MIDIEntityRef, _ outDevice: UnsafeMutablePointer<MIDIDeviceRef>) -> OSStatus |
| To | func MIDIEntityGetDevice(_ inEntity: MIDIEntityRef, _ outDevice: UnsafeMutablePointer<MIDIDeviceRef>?) -> OSStatus |
| Declaration | |
|---|---|
| From | func MIDIGetDriverDeviceList(_ driver: MIDIDriverRef) -> MIDIDeviceListRef |
| To | func MIDIGetDriverDeviceList(_ driver: MIDIDriverRef!) -> MIDIDeviceListRef |
| Declaration | |
|---|---|
| From | func MIDIInputPortCreate(_ client: MIDIClientRef, _ portName: CFString, _ readProc: MIDIReadProc, _ refCon: UnsafeMutablePointer<Void>, _ outPort: UnsafeMutablePointer<MIDIPortRef>) -> OSStatus |
| To | func MIDIInputPortCreate(_ client: MIDIClientRef, _ portName: CFString, _ readProc: CoreMIDI.MIDIReadProc, _ refCon: UnsafeMutableRawPointer?, _ outPort: UnsafeMutablePointer<MIDIPortRef>) -> OSStatus |
| Declaration | |
|---|---|
| From | func MIDIInputPortCreateWithBlock(_ client: MIDIClientRef, _ portName: CFString, _ outPort: UnsafeMutablePointer<MIDIPortRef>, _ readBlock: MIDIReadBlock) -> OSStatus |
| To | func MIDIInputPortCreateWithBlock(_ client: MIDIClientRef, _ portName: CFString, _ outPort: UnsafeMutablePointer<MIDIPortRef>, _ readBlock: CoreMIDI.MIDIReadBlock) -> OSStatus |
Modified MIDINotifyBlock
| Declaration | |
|---|---|
| From | typealias MIDINotifyBlock = (UnsafePointer<MIDINotification>) -> Void |
| To | typealias MIDINotifyBlock = (UnsafePointer<MIDINotification>) -> Swift.Void |
Modified MIDINotifyProc
| Declaration | |
|---|---|
| From | typealias MIDINotifyProc = (UnsafePointer<MIDINotification>, UnsafeMutablePointer<Void>) -> Void |
| To | typealias MIDINotifyProc = (UnsafePointer<MIDINotification>, UnsafeMutableRawPointer?) -> Swift.Void |
| Declaration | |
|---|---|
| From | func MIDIObjectFindByUniqueID(_ inUniqueID: MIDIUniqueID, _ outObject: UnsafeMutablePointer<MIDIObjectRef>, _ outObjectType: UnsafeMutablePointer<MIDIObjectType>) -> OSStatus |
| To | func MIDIObjectFindByUniqueID(_ inUniqueID: MIDIUniqueID, _ outObject: UnsafeMutablePointer<MIDIObjectRef>?, _ outObjectType: UnsafeMutablePointer<MIDIObjectType>?) -> OSStatus |
Modified MIDIPortConnectSource(_: MIDIPortRef, _: MIDIEndpointRef, _: UnsafeMutableRawPointer?) -> OSStatus
| Declaration | |
|---|---|
| From | func MIDIPortConnectSource(_ port: MIDIPortRef, _ source: MIDIEndpointRef, _ connRefCon: UnsafeMutablePointer<Void>) -> OSStatus |
| To | func MIDIPortConnectSource(_ port: MIDIPortRef, _ source: MIDIEndpointRef, _ connRefCon: UnsafeMutableRawPointer?) -> OSStatus |
Modified MIDIReadBlock
| Declaration | |
|---|---|
| From | typealias MIDIReadBlock = (UnsafePointer<MIDIPacketList>, UnsafeMutablePointer<Void>) -> Void |
| To | typealias MIDIReadBlock = (UnsafePointer<MIDIPacketList>, UnsafeMutableRawPointer?) -> Swift.Void |
Modified MIDIReadProc
| Declaration | |
|---|---|
| From | typealias MIDIReadProc = (UnsafePointer<MIDIPacketList>, UnsafeMutablePointer<Void>, UnsafeMutablePointer<Void>) -> Void |
| To | typealias MIDIReadProc = (UnsafePointer<MIDIPacketList>, UnsafeMutableRawPointer?, UnsafeMutableRawPointer?) -> Swift.Void |
Modified MIDIThruConnectionFind(_: CFString, _: UnsafeMutablePointer<Unmanaged<CFData>>) -> OSStatus
| Declaration | |
|---|---|
| From | func MIDIThruConnectionFind(_ inPersistentOwnerID: CFString, _ outConnectionList: UnsafeMutablePointer<Unmanaged<CFData>?>) -> OSStatus |
| To | func MIDIThruConnectionFind(_ inPersistentOwnerID: CFString, _ outConnectionList: UnsafeMutablePointer<Unmanaged<CFData>>) -> OSStatus |
| Declaration | |
|---|---|
| From | func MIDIThruConnectionGetParams(_ connection: MIDIThruConnectionRef, _ outConnectionParams: UnsafeMutablePointer<Unmanaged<CFData>?>) -> OSStatus |
| To | func MIDIThruConnectionGetParams(_ connection: MIDIThruConnectionRef, _ outConnectionParams: UnsafeMutablePointer<Unmanaged<CFData>>) -> OSStatus |