AudioGraphBuilder.limiter() method
A brick-wall look-ahead limiter (linked channels): the gain attacks ahead of a transient (content is delayed by lookaheadMs, keeping its PTS; the delay is reported as node latency) and a final clamp makes the ceiling absolute. lookaheadMs is fixed at build; the rest are runtime params. With truePeak the detector is 4× oversampled inter-sample peaks (BS.1770), so ceilingDb can be a true-peak (dBTP) limit directly; without it the detector is sample-peak — leave ~1 dB inter-sample margin on the ceiling. Defaults: −1 dBFS ceiling, 2 ms look-ahead, 1 ms attack, 50 ms release, sample-peak.
Signature:
limiter(input: AudioNode, opts?: {
ceilingDb?: number;
lookaheadMs?: number;
attackMs?: number;
releaseMs?: number;
truePeak?: boolean;
meterMs?: number;
name?: string;
linked?: boolean;
driveDb?: number;
}): AudioNode;