Contents

MIDIGetNumberOfExternalDevices()

Returns the number of external MIDI devices in the system.

Declaration

func MIDIGetNumberOfExternalDevices() -> Int

Return Value

The number of external devices in the system, or 0 if an error occurred.

Discussion

External MIDI devices connect to driver endpoints using a standard MIDI cable. Their presence is optional only when a UI (such as Audio MIDI Setup) adds them.

See Also

Device lookup