AudioGraphBuilder.mute() method

A click-free hard MUTE. Ramps between unity and silence over rampMs (default 15 ms) so toggling never clicks. muted is runtime-tunable via AudioGraphNode.setParams() (muted), so it toggles live.

Signature:

mute(input: AudioNode, opts?: {
        muted?: boolean;
        rampMs?: number;
    }): AudioNode;

Parameters

Parameter Type Description

input

AudioNode

opts

{ muted?: boolean; rampMs?: number; }

(Optional)

Returns: