Contents

MusicSequenceGetTrackCount(_:_:)

Gets the number of music tracks owned by a music sequence.

Declaration

func MusicSequenceGetTrackCount(_ inSequence: MusicSequence, _ outNumberOfTracks: UnsafeMutablePointer<UInt32>) -> OSStatus

Parameters

  • inSequence:

    The music sequence whose track count you want.

  • outNumberOfTracks:

    On output, the number of music tracks in the music sequence.

Return Value

A result code.

Discussion

The track count provided by this function excludes the tempo track.

See Also

Managing Music Sequences