---
title: "registerSoundEventAsset(rootNode:identifier:)"
framework: phase
role: symbol
role_heading: Instance Method
path: "phase/phaseassetregistry/registersoundeventasset(rootnode:identifier:)"
---

# registerSoundEventAsset(rootNode:identifier:)

Registers the root node of the sound event asset.

## Declaration

```swift
func registerSoundEventAsset(rootNode: PHASESoundEventNodeDefinition, identifier: String?) throws -> PHASESoundEventNodeAsset
```

## Parameters

- `rootNode`: The root node of the sound event asset to register.
- `identifier`: The identifier to assign to this parameter. Assigning nil generates an automatic identifier.

## Return Value

Return Value A sound event node asset.

## See Also

### Registering Sound Event Assets

- [asset(forIdentifier:)](phase/phaseassetregistry/asset(foridentifier:).md)
