AudioLoader

Loader for audio files. Audio files are loaded through the a DOM audio element, and therefore the formats supported is limited by the browser.

Constructor

new L3D.AudioLoader()

Extends

Methods

load(url) → nullable Asset

Overrides:

Load an asset from the given URL. If the load is asynchronous, such as from a remote URL, then the asset is returned with its state set to Loading, and when the asynchronous load finishes, it is set to Loaded. The users of the asset will asset will look at its state to see if it's ready to be used. Note that the state of assets is Unloaded by default, so the state should always be set by the AssetLoader loader.

Parameters
url String

The url of the asset.

Returns
Asset

The loaded asset.