AudioFileResource
An audio resource that you load from a file or from a URL.
Declaration
@MainActor @preconcurrency class AudioFileResourceOverview
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
load(named:in:inputMode:loadingStrategy:shouldLoop:)loadAsync(named:in:inputMode:loadingStrategy:shouldLoop:)load(contentsOf:withName:inputMode:loadingStrategy:shouldLoop:)loadAsync(contentsOf:withName:inputMode:loadingStrategy:shouldLoop:)loadingStrategyshouldLoop