Contents

MIDIDriverEnableMonitoring(_:_:)

Enables monitoring of all outgoing MIDI packets.

Declaration

func MIDIDriverEnableMonitoring(_ driver: MIDIDriverRef, _ enabled: Bool) -> OSStatus

Parameters

  • driver:

    The driver for which to enable monitoring.

  • enabled:

    A Boolean value that indicates whether to enable monitoring.

Return Value

An OSStatus result code.

Discussion

Some specialized drivers, like a MIDI monitor display, can intercept and inspect all outgoing MIDI messages. Enablng monitoring causes the system to call the Monitor function with the outgoing MIDI packets for all destinations in the system. The Monitor function can’t rely on the MIDI events arriving in order, due to the MIDI server’s schedule-ahead facilities.

See Also

Inspecting a Driver