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

# NextAudioFileRegion(_:)

Finds the next audio file region in a region list.

```
func NextAudioFileRegion(_ inAFRegionPtr: UnsafePointer<AudioFileRegion>) -> UnsafeMutablePointer<AudioFileRegion>
```

## Parameters

`inAFRegionPtr`

A pointer to an audio file region in the region list.

## Return Value

A pointer to the next region after the region pointed to by the `inAFRegionPtr` parameter. This value can be beyond the end of the list, so pay attention to the total number of regions in the list.

## Discussion

Because audio file regions are of variable length, you cannot easily walk the list. Use this convenience function when you call the [`AudioFileGetProperty(_:_:_:_:)`](/documentation/AudioToolbox/AudioFileGetProperty(_:_:_:_:)) function with the [`kAudioFilePropertyRegionList`](/documentation/AudioToolbox/kAudioFilePropertyRegionList) property to walk through the list of regions returned.

## See Also

[`AudioFileSetProperty`](/documentation/AudioToolbox/AudioFileSetProperty(_:_:_:_:))

Sets the value of an audio file property



---

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)