Contents

MusicEventIteratorGetEventInfo(_:_:_:_:_:)

Gets information about the event at a music event iterator’s current position.

Declaration

func MusicEventIteratorGetEventInfo(_ inIterator: MusicEventIterator, _ outTimeStamp: UnsafeMutablePointer<MusicTimeStamp>, _ outEventType: UnsafeMutablePointer<MusicEventType>, _ outEventData: UnsafeMutablePointer<UnsafeRawPointer?>, _ outEventDataSize: UnsafeMutablePointer<UInt32>) -> OSStatus

Parameters

  • inIterator:

    The music event iterator whose current event you want information about.

  • outTimeStamp:

    On output, the timestamp of the music event, in beats.

  • outEventType:

    On output, the type of music event. For possible event types, see Musiceventtype.

  • outEventData:

    On output, a reference to the music event data. The type of data is specified by the outEventType parameter. Do not modify the referenced data directly; to change an event, use the Musiceventiteratorseteventinfo(_:_:_:) function.

  • outEventDataSize:

    On output, the size, in bytes, of the music event data in the outEventData parameter.

Return Value

A result code.

Discussion

Pass NULL for any output parameter whose information you do not need.

See Also

Iterating Over Music Events