Contents

MusicTrackSetDestMIDIEndpoint(_:_:)

Sets the music track’s event target to a MIDI endpoint.

Declaration

func MusicTrackSetDestMIDIEndpoint(_ inTrack: MusicTrack, _ inEndpoint: MIDIEndpointRef) -> OSStatus

Parameters

  • inTrack:

    The music track that you want to set a target MIDI endpoint for.

  • inEndpoint:

    The MIDI endpoint that you specifying as the target for music track.

Return Value

A result code.

Discussion

When played, the music track sends its events to the specified MIDI endpoint.

See Also

Managing Music Tracks