Class: WebAudioMedia

webaudio.WebAudioMedia

Represents a single sound element. Can be used to play, pause, etc. sound instances.

Implements

Members

buffer

Gets and sets the buffer.

context

filters

Get the current chained nodes object

parent Sound readonly

Reference to the parent Sound container.

source ArrayBuffer readonly

The file buffer to load.

Methods

_decode (arrayBuffer, callback) void

Decodes the array buffer.

Name Type Attributes Description
arrayBuffer ArrayBuffer

From load.

callback Function <optional>

Callback optional

_loadUrl (callback) void

Loads a sound using XHMLHttpRequest object.

Name Type Attributes Description
callback LoadedCallback <optional>

destroy () void

Destructor, safer to use SoundLibrary.remove(alias) to remove this sound.

init (parent) void

Re-initialize without constructing.

Name Type Description
parent Sound
  • Instance of parent Sound container