Function

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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software