PHASEAssetRegistry
A central repository of audio assets.
Declaration
class PHASEAssetRegistryOverview
This class manages audio by registering two types of assets throughout the app’s life cycle:
- PHASESoundAsset
A sound asset identifies the particular audio data that your app intends to play.
- PHASESoundEventNodeAsset
A sound event asset provides audio with an avenue to the output device, and either represents a single sound or a dynamic set of sounds that play individually, depending on the app’s state.
When you’re done with a sound asset, call unregisterAsset(identifier:completion:) to free up its system resources.
Topics
Registering Sound Assets
registerSoundAsset(url:identifier:assetType:channelLayout:normalizationMode:)registerSoundAsset(data:identifier:format:normalizationMode:)unregisterAsset(identifier:completion:)