AudioGraphBuilder.channelPad() method

Force a stream to exactly target channels: pad short inputs with silence, truncate wide ones. The crash-safe front of a fixed-channel-count graph (e.g. a fan-out configured for 16 channels).

Signature:

channelPad(input: AudioNode, opts: {
        target: number;
    }): AudioNode;

Parameters

Parameter Type Description

input

AudioNode

opts

{ target: number; }

Returns: