AudioBus

Represents a single audio bus node in a hierarchical mixing tree.

Constructor

new AudioBus(name, configopt)

Parameters:
NameTypeAttributesDescription
namestring
configObject<optional>
Properties
NameTypeAttributesDefaultDescription
parentAudioBus<optional>
null
volumenumber<optional>
1.0
mutedboolean<optional>
false

Classes

AudioBus

Methods

getEffectiveVolume() → {number}

Compute composed effective volume through the ancestor chain. If this bus or any ancestor is muted, effective volume is 0.0.

Returns:

Composed volume in range [0, 1]

Type: 
number

isEffectivelyMuted() → {boolean}

Check if this bus or any of its parents is muted.

Returns:
Type: 
boolean