Skip to content

Constrain valid renderSizeHint to inclusive range [1 sample, 6 seconds] #2664

@mjwilson-google

Description

@mjwilson-google

As discussed at TPAC 2025, we will accept renderSizeHints in the range of 1 sample to 6 seconds at the context sample rate, and reject all other values. This should be specified in the text.

The reasoning for this range is that we want to support the largest ScriptProcessorNode buffer size (16384) at the lowest sample rate (3000 Hz as sepcified in https://webaudio.github.io/web-audio-api/#sample-rates), to allow existing ScriptProcessorNode applications to be ported to AudioWorklet. This reasoning should be included in a non-normative note in the spec.

Metadata

Metadata

Labels

Needs EditsDecision has been made, the issue can be fixed. https://speced.github.io/spec-maintenance/about/category: enhancementSubstantive changes that do not add new features. https://www.w3.org/policies/process/#class-3

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions