Midi 类

定义

使用 CoreMidi 的全局方法和常量。

[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.MacOSX, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public static class Midi
public static class Midi
type Midi = class
继承
Midi
属性

属性

DestinationCount

MIDI 目标的数目。

DeviceCount

系统中的 MIDI 设备数 (不会与) 的外部连接设备混淆。

ExternalDeviceCount

连接到此系统的外部设备数。

NetworkBonjourServiceType

表示与常量 MIDINetworkBonjourServiceType 关联的值

NetworkNotificationContactsDidChange

当 MIDI 网络发生更改时引发通知。

NetworkNotificationSessionDidChange

MIDI 会话更改时引发的通知

SourceCount

返回系统中的源数。

方法

GetDevice(nint)

返回表示指定 MIDI 设备的 对象。

GetExternalDevice(nint)

返回一个对象,该对象表示指定的外部 MIDI 设备。

Restart()

重启 MIDI 子系统。

适用于

另请参阅