MusicEventIteratorSetEventInfo(_:_:_:)
Sets information for the event at a music event iterator’s current position.
Declaration
func MusicEventIteratorSetEventInfo(_ inIterator: MusicEventIterator, _ inEventType: MusicEventType, _ inEventData: UnsafeRawPointer) -> OSStatusParameters
- inIterator:
The music event iterator whose current event you want to set.
- inEventType:
The type of music event that you are specifying. For possible event types, see Musiceventtype.
- inEventData:
The event data that you are specifying. The size and type of the data must be appropriate for the music event type you specify in the
inEventTypeparameter.
Return Value
A result code.
Discussion
Use this function to set the music event type and event data for the event that a music event iterator is positioned at. This function doesn’t allow you to change an event’s timestamp; to do that, call the MusicEventIteratorSetEventTime(_:_:) function.
See Also
Iterating Over Music Events
NewMusicEventIterator(_:_:)DisposeMusicEventIterator(_:)MusicEventIteratorNextEvent(_:)MusicEventIteratorSeek(_:_:)MusicEventIteratorDeleteEvent(_:)MusicEventIteratorGetEventInfo(_:_:_:_:_:)MusicEventIteratorHasCurrentEvent(_:_:)MusicEventIteratorHasNextEvent(_:_:)MusicEventIteratorHasPreviousEvent(_:_:)MusicEventIteratorPreviousEvent(_:)MusicEventIteratorSetEventTime(_:_:)MusicEventIteratorMusicEventTypeExtendedNoteOnEventExtendedTempoEvent