MIDISetupRemoveDevice(_:)
Removes a driver-owned MIDI device from the current MIDI setup.
Declaration
func MIDISetupRemoveDevice(_ device: MIDIDeviceRef) -> OSStatusParameters
- device:
The device to remove.
Return Value
An OSStatus result code.
Discussion
Typically, only a studio-configuration editor calls this function to remove a device that’s offline and which the user has specified as permanently missing. It’s a good practice to have drivers set the deviceʼs kMIDIPropertyOffline to 1, instead of removing the device from the setup, so if the device reappears later, the system preserves the deviceʼs property state.