Enumeration

AudioFileRegionFlags

Flags that specify a playback direction for an AudioFileRegion structure.

Declaration

typedef enum AudioFileRegionFlags : UInt32 {
    ...
} 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

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

If set, the region is played backward.

kAudioFileRegionFlag_PlayForward

If set, the region is played forward.