Bug 1532151 [wpt PR 15520] - Add support for AudioContextOptions sampleRate, a=testonly
commit6af51aaeacf65922b93d5994fc3ee9600ab3deb6
authorAndrew MacPherson <andrew.macpherson@soundtrap.com>
Tue, 26 Mar 2019 13:54:45 +0000 (26 13:54 +0000)
committerJames Graham <james@hoppipolla.co.uk>
Mon, 1 Apr 2019 13:43:01 +0000 (1 14:43 +0100)
tree2c4c37c287afd39d0a3c556a294b1ff39d3508ed
parent40d93d4e04b3fbca1fa348083f86bc61a9855213
Bug 1532151 [wpt PR 15520] - Add support for AudioContextOptions sampleRate, a=testonly

Automatic update from web-platform-tests
Add support for AudioContextOptions sampleRate

Optional sampleRate parameter to AudioContextOptions, if provided then
the AudioContext will run at this sampleRate, otherwise it will run at
the hardware rate.

Running the AudioContext at a lower sample rate can allow running a
heavier graph on low-end devices, for example if a given device is able
to run with X nodes at a sample rate of 48k, it can support roughly
2X nodes at 24k or 4X nodes at 12k.

Bug: 432248
Change-Id: I835f28b4625763bd6a6ddbee9b89636ef8a8a066
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1482957
Reviewed-by: Kent Tamura <tkent@chromium.org>
Reviewed-by: Raymond Toy <rtoy@chromium.org>
Reviewed-by: Hongchan Choi <hongchan@chromium.org>
Commit-Queue: Andrew MacPherson <andrew.macpherson@soundtrap.com>
Cr-Commit-Position: refs/heads/master@{#638498}

--

wpt-commits: 9b994b36003246370b352fa70c563866a8443e4e
wpt-pr: 15520
testing/web-platform/tests/webaudio/the-audio-api/the-audiocontext-interface/audiocontextoptions.html