Home Reference Source
public class | source

AudioNode

Extends:

GraphNodeSourceNodeMediaNode → AudioNode

Constructor Summary

Public Constructor
public

Initialise an instance of an AudioNode.

Member Summary

Private Members
private
private

Method Summary

Private Methods
private

_update(currentTime: *)

Inherited Summary

From class GraphNode
public get

Get whether the node has been destroyed or not.

public get

displayName: *: *

Get a string representation of the class name.

public get

Get the names of the inputs to this node.

public get

Get an array of all the nodes which connect to this node.

public get

The maximum number of connections that can be made to this node.

public get

Get an array of all the nodes which this node outputs to.

private
private
private

_gl: *

private
private
private
private
public

connect(targetNode: GraphNode, targetPort: number | String): *

Connect this node to the targetNode

public

Destory this node, removing it from the graph.

public

disconnect(targetNode: GraphNode): *

Disconnect this node from the targetNode.

From class SourceNode
public get

Returns the duration of the node on a timeline.

public get

element: Element: *

Returns the underlying DOM element which represents this source node.

public get
public get

state: *

Returns the state of the node.

public get
public get
public set
private

_callbacks: *[]

private
private
private
private
private
private
private
private
private
private
private

_state: *

private
private
private
public

Clear any timeline state the node currently has, this puts the node in the "waiting" state, as if neither start nor stop had been called.

public

Destroy and clean-up the node.

public

Register callbacks against one of these events: "load", "destroy", "seek", "pause", "play", "ended", "durationchange", "loaded", "error"

public

start(time: number): boolean

Start playback at VideoContext.currentTime plus passed time.

public

Start playback at an absolute time ont the VideoContext's timeline.

public

stop(time: number): boolean

Stop playback at VideoContext.currentTime plus passed time.

public

Stop playback at an absolute time ont the VideoContext's timeline.

public

Remove callback.

private
private

_load()

private

_pause()

private

_play()

private

_seek(time: *)

private

_triggerCallbacks(type: *, data: *)

private
private

_update(currentTime: *, triggerTextureUpdate: boolean): boolean

From class MediaNode
public get
public get
public set
public get
public set
public set
private
private
private
private
private
private
private
private
private
private
private
private

_state: *

private
private
public
public
private

_load()

private

_seek(time: *)

private
private

_update(currentTime: *, triggerTextureUpdate: boolean): boolean

Public Constructors

public constructor() source

Initialise an instance of an AudioNode. This should not be called directly, but created through a call to videoContext.audio();

Override:

MediaNode#constructor

Private Members

private _displayName: string source

Override:

SourceNode#_displayName

private _elementType: string source

Private Methods

private _update(currentTime: *) source

Override:

MediaNode#_update

Params:

NameTypeAttributeDescription
currentTime *