---
title: AVMusicEventEnumerationBlock
framework: avfaudio
role: symbol
role_heading: Type Alias
path: avfaudio/avmusiceventenumerationblock
---

# AVMusicEventEnumerationBlock

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

## Declaration

```swift
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

Discussion You use this type when you use enumerateEvents(in:using:). If you modify event or timeStamp, you change the corresponding value in the track event.

## See Also

### Iterating Over Events

- [enumerateEvents(in:using:)](avfaudio/avmusictrack/enumerateevents(in:using:).md)
