← Back to release summary

WebAudio: Refine BiquadFilterNode AudioParam limits

Category
Multimedia
Type
New or changed feature
Status
Enabled by default (Chrome 81)
Intent stage
Evaluate readiness to ship

Summary

The WebAudio spec has updated the limits for the frequency, detune, and gain AudioParam attributes for a BiquadFilterNode. Previously these allowed any floating-point value.

Motivation

This makes the limits a more explicit because the larger values would generally either clamp to some limit or cause the output to produce infinities or NaN. Now, the values will be clamped to the limits so these things will not happen.

Standards & signals

Docs: https://webaudio.github.io/web-audio-api/#BiquadFilterNode-attributes

Explainers: https://github.com/WebAudio/web-audio-api/issues/2087 https://github.com/WebAudio/web-audio-api/issues/2113

View on chromestatus.com