Contents

MusicSequenceGetTrackIndex(_:_:_:)

Gets the index number for a specified music track.

Declaration

func MusicSequenceGetTrackIndex(_ inSequence: MusicSequence, _ inTrack: MusicTrack, _ outTrackIndex: UnsafeMutablePointer<UInt32>) -> OSStatus

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

Managing Music Sequences