Contents

MusicTrackGetDestMIDIEndpoint(_:_:)

Gets the MIDI endpoint that is the event target for a music track.

Declaration

func MusicTrackGetDestMIDIEndpoint(_ inTrack: MusicTrack, _ outEndpoint: UnsafeMutablePointer<MIDIEndpointRef>) -> OSStatus

Parameters

  • inTrack:

    The music track for which you want to get the associated MIDI endpoint.

  • outEndpoint:

    On return, the MIDI endpoint that is the event target of the music track. This function instead returns an error if the music track’s event target is not a MIDI endpoint.

Return Value

A result code. If the music track’s event target is an audio unit node, returns kAudioToolboxErr_IllegalTrackDestination.

See Also

Managing Music Tracks