Allows developers to set the "sampleRate" for an AudioContext at the time it is created. This allows developers to set an arbitrary sample rate for audio processing in Web Audio API.

Motivation

This allows developers to control the sample rate separatly from the hardware rate. Use this to reduce complexity (using a lower sample rate) or to make the sample rate consistent across devices by using a fixed rate and letting WebAudio resample appropriately for the hardware rate.

Documentation

Specification

Editor's draft

Status in Chromium

Blink>WebAudio


Enabled by default (tracking bug) in:

  • Chrome for desktop release 74
  • Chrome for Android release 74
  • Android WebView release 74

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

  • Shipped/Shipping
  • No signal
  • No signal
  • Strongly positive

Owners

Search tags

webaudio, audio,

Last updated on 2020-11-09