Skip to content

volume(...)

Studio is being deprecated, please head over to the documentation page for Mattercraft, our most advanced 3D tool for the web, where you can find the most recent information and tutorials.

volume(val: number[]): this;

Sets the volume of the audio object.

Default value: [1, 1]

ParameterTypeDescription
valarrayThe volume to set, as [l, r] where l and r are between 0 and 1.

this