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

# AudioFileRegionFlags

Flags that specify a playback direction for an audio file region structure.

```
struct AudioFileRegionFlags
```

## Overview

You can set one or more of these flags. For example, if both `kAudioFileRegionFlag_LoopEnable` and `kAudioFileRegionFlag_PlayForward` are set, the region plays as a forward loop. If only  `kAudioFileRegionFlag_PlayForward` is set, the region is played forward once. if both `kAudioFileRegionFlag_PlayForward` and `kAudioFileRegionFlag_PlayBackward` are set, the region plays forward then backward, then forward.

## Topics

### Constants

[`loopEnable`](/documentation/AudioToolbox/AudioFileRegionFlags/loopEnable)

If set, the region is looped. You must set one or both of the remaining flags must also be set for the region to be looped.

[`playBackward`](/documentation/AudioToolbox/AudioFileRegionFlags/playBackward)

If set, the region is played backward.

[`playForward`](/documentation/AudioToolbox/AudioFileRegionFlags/playForward)

If set, the region is played forward.



---

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)