<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFAudio",
  "identifier" : "/documentation/AVFAudio/AVMusicEventEnumerationBlock",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "AVFAudio"
    ],
    "preciseIdentifier" : "c:@T@AVMusicEventEnumerationBlock"
  },
  "title" : "AVMusicEventEnumerationBlock"
}
-->

# AVMusicEventEnumerationBlock

A type you use to enumerate and remove music events, if necessary.

```
typealias AVMusicEventEnumerationBlock = (AVMusicEvent, UnsafeMutablePointer<AVMusicTimeStamp>, UnsafeMutablePointer<ObjCBool>) -> Void
```

## Parameters

`event`

The music event the block returns.

`timeStamp`

The beat position of the event in the music track.

`removeEvent`

A value that determines whether to remove the event from the track.

## Discussion

You use this type when you use [`enumerateEvents(in:using:)`](/documentation/AVFAudio/AVMusicTrack/enumerateEvents(in:using:)). If you modify `event` or `timeStamp`, you change the corresponding value in the track event.

---

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)