Bug 1720385 [wpt PR 29653] - Initialize AudioData from BufferSource, a=testonly
commitfb8eca9ae12e9565e4ac9c3934f6e978925d0e17
authorThomas Guilbert <tguilbert@chromium.org>
Sat, 17 Jul 2021 09:53:07 +0000 (17 09:53 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Sat, 17 Jul 2021 19:33:04 +0000 (17 19:33 +0000)
treebb1698f58018e82ed32af01101a3735756841373
parent8eebc89deeab111794a2376b9c9fac77dbf59982
Bug 1720385 [wpt PR 29653] - Initialize AudioData from BufferSource, a=testonly

Automatic update from web-platform-tests
Initialize AudioData from BufferSource

This CL updated AudioDataInit to use a BufferSource data member, instead
of an AudioBuffer member. It also moves fields found in the AudioBuffer
into the top level AudioDataInit.

This allows users to create AudioData in whichever format they want.

Bug: 1205281
Change-Id: If234ace2d64e79470f6561c9c0838643ec390f8e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3025311
Commit-Queue: Thomas Guilbert <tguilbert@chromium.org>
Reviewed-by: Dan Sanders <sandersd@chromium.org>
Cr-Commit-Position: refs/heads/master@{#901720}

--

wpt-commits: 0dd9d64da423eec530273f40dc14f0a4b4256f89
wpt-pr: 29653
testing/web-platform/tests/mediacapture-insertable-streams/MediaStreamTrackGenerator-audio.https.html
testing/web-platform/tests/webcodecs/audio-data.any.js
testing/web-platform/tests/webcodecs/utils.js