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>) -> OSStatusParameters
- 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
outEventTypeparameter. 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
outEventDataparameter.
Return Value
A result code.
Discussion
Pass NULL for any output parameter whose information you do not need.
See Also
Iterating Over Music Events
NewMusicEventIterator(_:_:)DisposeMusicEventIterator(_:)MusicEventIteratorNextEvent(_:)MusicEventIteratorSeek(_:_:)MusicEventIteratorDeleteEvent(_:)MusicEventIteratorHasCurrentEvent(_:_:)MusicEventIteratorHasNextEvent(_:_:)MusicEventIteratorHasPreviousEvent(_:_:)MusicEventIteratorPreviousEvent(_:)MusicEventIteratorSetEventInfo(_:_:_:)MusicEventIteratorSetEventTime(_:_:)MusicEventIteratorMusicEventTypeExtendedNoteOnEventExtendedTempoEvent