<!--
{
  "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/PHASESoundAsset",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "PHASE"
    ],
    "preciseIdentifier" : "c:objc(cs)PHASESoundAsset"
  },
  "title" : "PHASESoundAsset"
}
-->

# PHASESoundAsset

A sound resource stored in the asset registry.

```
class PHASESoundAsset
```

## Overview

This class wraps source audio data that an app intends to play. The framework requires a mixer to play a sound asset, and sound event nodes like [`PHASESamplerNodeDefinition`](/documentation/PHASE/PHASESamplerNodeDefinition) combine the asset with a mixer. To provide a sound asset to a sound-event node, refer to the asset by the `identifier` you pass into the [`registerSoundAsset(url:identifier:assetType:channelLayout:normalizationMode:)`](/documentation/PHASE/PHASEAssetRegistry/registerSoundAsset(url:identifier:assetType:channelLayout:normalizationMode:)) function.

## Topics

### Accessing Sound Data

[`data`](/documentation/PHASE/PHASESoundAsset/data)

A storage buffer for the sound asset.

[`url`](/documentation/PHASE/PHASESoundAsset/url)

The URL of the sound asset.

### Classifying an Asset

[`type`](/documentation/PHASE/PHASESoundAsset/type)

The type of sound asset.

## Relationships

### Conforms To

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

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

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

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

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

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

### Inherits From

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

---

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)