setMasterVolume

Controls the master gain node. Affects all sounds routed through the master bus.

import { setMasterVolume } from "@web-kits/audio";

setMasterVolume(0.5);

Signature

function setMasterVolume(volume: number): void;
ParameterTypeDescription
volumenumber0 = silent, 1 = full volume