Skip to content

Class: AudioRequest

AudioRequest specifies all information required to load a audio data. This includes the source of the audio data (e.g. a URL), and the name to assign the audio data, which should be unique.

Table of contents

Constructors

Properties

Constructors

constructor

+ new AudioRequest(name: string, source: string): AudioRequest

Parameters:

Name Type
name string
source string

Returns: AudioRequest

Properties

name

name: string

Name of the audio asset, how it is referred to throughout the system, should be unique.


source

source: string

Source of the audio, where the audio exists (URL, filepath etc.).


MESSAGE_REQUEST_LOAD

Readonly Static MESSAGE_REQUEST_LOAD: request_audio_load= "request_audio_load"

Message to request an audio asset to be loaded.