Function

MusicSequenceGetIndTrack

Gets the music track at the specified track index.

Declaration

OSStatus MusicSequenceGetIndTrack(MusicSequence inSequence, UInt32 inTrackIndex, MusicTrack  _Nullable *outTrack);

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