<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AudioToolbox",
  "identifier" : "/documentation/AudioToolbox/MusicEventIteratorGetEventInfo(_:_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Audio Toolbox"
    ],
    "preciseIdentifier" : "c:@F@MusicEventIteratorGetEventInfo"
  },
  "title" : "MusicEventIteratorGetEventInfo(_:_:_:_:_:)"
}
-->

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

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

```
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`](/documentation/AudioToolbox/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(_:_:_:)`](/documentation/AudioToolbox/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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)