Contents

AudioFileResource

An audio resource that you load from a file or from a URL.

Declaration

@MainActor @preconcurrency class AudioFileResource

Overview

Load an audio file resource, like an audio file stored in .aiff or other format, by calling one of the load functions. Use the resource to create an AudioPlaybackController instance by calling an entity’s prepareAudio(_:) or playAudio(_:) function. The controller plays the audio from the location in space of the entity that created the controller.

Topics

Loading audio from a bundle

Loading audio from a URL

Describing the resource

Supporting types

Deprecated

Operators

Type Methods

See Also

Audio resources