<!--
{
  "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

[`kAudioFileRegionFlag_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.

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

If set, the region is played backward.

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

If set, the region is played forward.

## Relationships

### Conforms To

[`OptionSet`](/documentation/Swift/OptionSet)

[`SetAlgebra`](/documentation/Swift/SetAlgebra)

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`ExpressibleByArrayLiteral`](/documentation/Swift/ExpressibleByArrayLiteral)

---

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)