An audio resource that can be played by an entity.


class AudioResource


The AudioResource class stores audio that you can play from any entity in your scene. Typically, you use an instance of the AudioFileResource subclass, however, which adds the ability to load the audio data from a file (for example, from an .aiff file stored in your app’s bundle) or from a URL.


Specifying an Input Mode

var inputMode: AudioResource.InputMode

The input mode used by an audio resource.

enum AudioResource.InputMode

Modes for processing audio resources.


Conforms To

See Also

Audio Playback

class AudioPlaybackController

A controller that manages audio playback of a resource.

class AudioFileResource

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

enum AudioEvents

Events associated with audio playback.