Function

MusicTrackGetDestMIDIEndpoint

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

Declaration

OSStatus MusicTrackGetDestMIDIEndpoint(MusicTrack inTrack, MIDIEndpointRef *outEndpoint);

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.