AbstractAudioComponent

AbstractAudioComponent

Abstract base class for sound and speech component

Constructor

new AbstractAudioComponent()

Methods

setVolume(volume) → {Promise}

Parameters:
Name Type Description
volume number

A number between 0 and 1 representing the playback volume.

updatePannerNode(settings, mvMat)

update pannerNode transform and some other basic settings

Parameters:
Name Type Description
settings Object

settings for pannerNode

mvMat Matrix4

relative transform matrix to update panner node position/orientation