<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PHASE",
  "identifier" : "/documentation/PHASE/PHASESamplerNodeDefinition",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "PHASE"
    ],
    "preciseIdentifier" : "c:objc(cs)PHASESamplerNodeDefinition"
  },
  "title" : "PHASESamplerNodeDefinition"
}
-->

# PHASESamplerNodeDefinition

A node that plays complete audio data.

```
class PHASESamplerNodeDefinition
```

## Overview

Generate sound events from this node to play audio data that your app loads completely, either from disk or from memory.

## Topics

### Creating a Sampler Node

[`init(soundAssetIdentifier:mixerDefinition:)`](/documentation/PHASE/PHASESamplerNodeDefinition/init(soundAssetIdentifier:mixerDefinition:))

Creates a sampler node with the given sound asset and mixer.

[`init(soundAssetIdentifier:mixerDefinition:identifier:)`](/documentation/PHASE/PHASESamplerNodeDefinition/init(soundAssetIdentifier:mixerDefinition:identifier:))

Creates a named sampler node with the given sound asset and mixer.

### Identifying the Audio

[`assetIdentifier`](/documentation/PHASE/PHASESamplerNodeDefinition/assetIdentifier)

The name of the audio this node plays.

### Defining Cull Behavior

[`cullOption`](/documentation/PHASE/PHASESamplerNodeDefinition/cullOption)

The action the engine performs after it temporarily removes the node’s sound from the audio output.

[`PHASECullOption`](/documentation/PHASE/PHASECullOption)

The actions the engine takes when it culls sound.

### Looping the Audio

[`playbackMode`](/documentation/PHASE/PHASESamplerNodeDefinition/playbackMode)

An option that determines whether the node’s audio plays in a loop.



---

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)