MusicTrackGetDestNode(_:_:)
Gets the audio unit node that is the event target for a music track.
Declaration
func MusicTrackGetDestNode(_ inTrack: MusicTrack, _ outNode: UnsafeMutablePointer<AUNode>) -> OSStatusParameters
- inTrack:
The music track for which you want to get the associated audio unit node.
- outNode:
On return, the audio unit node that is the event target of the music track. This function instead returns an error if the music track’s event target is not an audio unit node.
Return Value
A result code. If the music track’s event target is a MIDI endpoint, returns kAudioToolboxErr_IllegalTrackDestination.
See Also
Managing Music Tracks
MusicTrackClear(_:_:_:)MusicTrackCopyInsert(_:_:_:_:_:)MusicTrackCut(_:_:_:)MusicTrackGetDestMIDIEndpoint(_:_:)MusicTrackGetProperty(_:_:_:_:)MusicTrackGetSequence(_:_:)MusicTrackMerge(_:_:_:_:_:)MusicTrackMoveEvents(_:_:_:_:)MusicTrackNewAUPresetEvent(_:_:_:)MusicTrackNewExtendedNoteEvent(_:_:_:)MusicTrackNewExtendedTempoEvent(_:_:_:)MusicTrackNewMIDIChannelEvent(_:_:_:)MusicTrackNewMIDINoteEvent(_:_:_:)MusicTrackNewMIDIRawDataEvent(_:_:_:)MusicTrackNewMetaEvent(_:_:_:)