Contents

SetHasMIDI

Sets a Boolean value that indicates the box’s MIDI support.

Declaration

kern_return_t SetHasMIDI(bool in_has_midi);

Parameters

  • in_has_midi:

    true if the box supports MIDI; otherwise, false.

Return Value

kIOReturnSuccess on success, or another value if an error occurs. For a list of error codes, see Error Codes.

Discussion

If successful, changing the MIDI support value sends a notification to the host to update the object state.

This method synchronizes by using the work queue created by the object.

See Also

Determining Media Support