---
title: PHASEPlaybackMode
framework: phase
role: symbol
role_heading: Enumeration
path: phase/phaseplaybackmode
---

# PHASEPlaybackMode

Loop options for audio playback.

## Declaration

```swift
enum PHASEPlaybackMode
```

## Overview

Overview This class defines the options for a sampler node’s playbackMode. These options control whether the node’s sound event automatically plays back its audio asset from the beginning after finishing.

## Topics

### Playback Modes

- [PHASEPlaybackMode.oneShot](phase/phaseplaybackmode/oneshot.md)
- [PHASEPlaybackMode.looping](phase/phaseplaybackmode/looping.md)

### Initializers

- [init(rawValue:)](phase/phaseplaybackmode/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Audio-Providing Nodes

- [PHASESamplerNodeDefinition](phase/phasesamplernodedefinition.md)
- [PHASEPushStreamNodeDefinition](phase/phasepushstreamnodedefinition.md)
- [PHASEPushStreamNode](phase/phasepushstreamnode.md)
- [PHASEPushStreamBufferOptions](phase/phasepushstreambufferoptions.md)
- [PHASECalibrationMode](phase/phasecalibrationmode.md)
- [PHASEGeneratorNodeDefinition](phase/phasegeneratornodedefinition.md)
