Files
sousa-gecko/testing/web-platform/tests/webaudio/resources
Hongchan Choi a09dcf7b4b Bug 2039974 [wpt PR 59900] - [WebAudio] Fix baseLatency calculation and add scaling check test, a=testonly
Automatic update from web-platform-tests
[WebAudio] Fix baseLatency calculation and add scaling check test

This CL fixes the `baseLatency` implementation in `AudioContext` to
correctly account for the negotiated rendering quantum size, adhering
to the Web Audio API specification. It also adds a scaling check test
to verify this behavior.

Key changes:
* Update `base_latency_` calculation to be the maximum of the hardware
  buffer size and the rendering quantum size.
* Add a WPT test verifying that `baseLatency` scales appropriately
  when a non-standard `renderSizeHint` is requested.

Bug: 499036414
Test: run_web_tests.py -t Default audiocontext-rendersizehint.html
Change-Id: Ib4785504b4d4d8fef33b47941cca52895b194905
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7842084
Reviewed-by: Mahesh Kannan <kmaheshb@google.com>
Commit-Queue: Hongchan Choi <hongchan@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1631423}

--

wpt-commits: 124d076e0f5b19858a0cd522ade64ec635c7ba7e
wpt-pr: 59900
2026-05-19 08:26:07 +00:00
..