Function

MusicSequenceGetTrackCount

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

Declaration

OSStatus MusicSequenceGetTrackCount(MusicSequence inSequence, UInt32 *outNumberOfTracks);

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.