Contents

MusicSequenceGetIndTrack(_:_:_:)

Gets the music track at the specified track index.

Declaration

func MusicSequenceGetIndTrack(_ inSequence: MusicSequence, _ inTrackIndex: UInt32, _ outTrack: UnsafeMutablePointer<MusicTrack?>) -> OSStatus

Parameters

  • inSequence:

    The music sequence to obtain the music track from.

  • inTrackIndex:

    The index for the music track you want to obtain. Music tracks are zero-indexed. Out of bound indexes result in an error.

  • outTrack:

    On output, the music track specified by the inTrackIndex parameter.

Return Value

A result code.

Discussion

This function is for accessing only music tracks, not the tempo track.

See Also

Managing Music Sequences