← Back to release summary

Use FrozenArray in AudioWorkletProcessor.process()

Category
Multimedia
Type
New or changed feature
Status
In development (Chrome In development)
Intent stage
None

Summary

Currently AudioWorkletProcessor.process() method passes its arguments as `sequence<sequence<Float32Array>>`. The Audio WG discovered that this forces the implementation to allocate memory every processing block causing audio rendering performance degradation over time due to the garbage collection. Per the recent resolution in Audio WG (see the spec link), the WG decided to use FrozenArray<FrozenArray<Float32Array>> instead of compound `sequence` to avoid redundant reallocation.

Standards & signals

Ecosystem

View on chromestatus.com