MusicTrackGetDestMIDIEndpoint(_:_:)
Gets the MIDI endpoint that is the event target for a music track.
Declaration
func MusicTrackGetDestMIDIEndpoint(_ inTrack: MusicTrack, _ outEndpoint: UnsafeMutablePointer<MIDIEndpointRef>) -> OSStatusParameters
- 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
MusicTrackClear(_:_:_:)MusicTrackCopyInsert(_:_:_:_:_:)MusicTrackCut(_:_:_:)MusicTrackGetDestNode(_:_:)MusicTrackGetProperty(_:_:_:_:)MusicTrackGetSequence(_:_:)MusicTrackMerge(_:_:_:_:_:)MusicTrackMoveEvents(_:_:_:_:)MusicTrackNewAUPresetEvent(_:_:_:)MusicTrackNewExtendedNoteEvent(_:_:_:)MusicTrackNewExtendedTempoEvent(_:_:_:)MusicTrackNewMIDIChannelEvent(_:_:_:)MusicTrackNewMIDINoteEvent(_:_:_:)MusicTrackNewMIDIRawDataEvent(_:_:_:)MusicTrackNewMetaEvent(_:_:_:)