Bug 1842302 [wpt PR 40924] - Implement state transition for AudioContext.setSinkId...
commit7ca435b2cf610e5d5974f3b0c8312710c6c8d78e
authorHongchan Choi <hongchan@chromium.org>
Thu, 13 Jul 2023 08:09:34 +0000 (13 08:09 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Thu, 20 Jul 2023 10:31:08 +0000 (20 10:31 +0000)
treeb8fbe4d31865f906d532dae760896c0a1955d8e5
parentd72b0eabad6ee6591a91e47f90e3c24debb5616e
Bug 1842302 [wpt PR 40924] - Implement state transition for AudioContext.setSinkId, a=testonly

Automatic update from web-platform-tests
Implement state transition for AudioContext.setSinkId

This CL updates the implementation of AudioContext to follow the
spec algorithm of the state transition from setSinkid() method.

https://webaudio.github.io/web-audio-api/#dom-audiocontext-setsinkid-domstring-or-audiosinkoptions-sinkid

The relevant web test is also updated and the failing expectation file
is removed. The actual audio output on MacOS is tested by:
https://googlechromelabs.github.io/web-audio-samples/tests/setsinkid/

Bug: 1439947
Change-Id: I56d8c89272d66b08502203a846c65231a72e8549
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4670272
Reviewed-by: Kent Tamura <tkent@chromium.org>
Reviewed-by: Alvin Ji <alvinji@chromium.org>
Commit-Queue: Hongchan Choi <hongchan@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1168371}

--

wpt-commits: 00061770b2c06528be796acbacb55f04ec83a4a1
wpt-pr: 40924
testing/web-platform/tests/webaudio/the-audio-api/the-audiocontext-interface/audiocontext-sinkid-state-change.https.html