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


class AudioFileResource : AudioResource


Load an audio file resource, like an audio file stored in .aiff format, by calling one of the load methods. Then use the resource to create an AudioPlaybackController instance by calling an entity’s prepareAudio(_:) method. The controller plays the audio from the location in space of the entity that created the controller. During an AR session, when the user moves the device close to the entity emitting the sound, the sound grows louder.


Inherits From

See Also

Audio Playback

class AudioPlaybackController

A controller that manages audio playback of a resource.

class AudioResource

An audio resource that can be played by an entity.

enum AudioEvents

Events associated with audio playback.