Function

MusicSequenceGetTrackIndex

Gets the index number for a specified music track.

Declaration

OSStatus MusicSequenceGetTrackIndex(MusicSequence inSequence, MusicTrack inTrack, UInt32 *outTrackIndex);

Parameters

inSequence

The music sequence to obtain the track index number from.

inTrack

The music track whose index you want to obtain. This function returns an error if the music track is not part of the music sequence specified in the inSequence parameter.

outTrackIndex

On output, the zero-based index of the music track that you provided in the inTrack parameter.

Return Value

A result code.

Discussion

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

See Also