volume(...)

volume(val: number[]): this;

Sets the volume of the audio object.

Default value: [1, 1]

Parameters

Parameter Type Description
val array The volume to set, as [l, r] where l and r are between 0 and 1.

Returns

this

zapcode branded_zapcode i