Closed Bug 2077628 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63213 - OfflineAudioContext incremental rendering

Categories

(Core :: Web Audio, task, P4)

task

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 63213 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/63213
Details from upstream follow.

Gabriel Brito <gabrielbrito@microsoft.com> wrote:

OfflineAudioContext incremental rendering

This CL implements incremental rendering support for
OfflineAudioContext.startRendering. These changes reflect the steps of
the current startRendering algorithm of the Web Audio specification:
https://webaudio.github.io/web-audio-api/#dom-offlineaudiocontext-startrendering

These changes are gated by a feature flag so that the old behavior shall
be observed while the flag is disabled. Regression tests have been added
to make sure these observable behaviors still happen while the feature
flag is disabled. While the flag is disabled,

  • Passing an OfflineAudioContextOptions dict to the OAC constructor will
    throw a TypeError with the same message that is currently used
  • Passing a chunkSize value to startRendering will just set the internal
    value to std::nullopt, which should trigger the old behavior of
    rendering the whole buffer at once.
  • Exceptions will be thrown if startRendering is called twice or if
    called while it is suspended.

Bug: 530596178
Change-Id: I97b00d8a180e867a8cc119efb493089b10e545c4
Reviewed-on: https://chromium-review.googlesource.com/8376101
WPT-Export-Revision: 5efde42caa693bb5fbc6890d86e85026c011d329

Component: web-platform-tests → Web Audio
Product: Testing → Core

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, and Chrome on GitHub CI

Total 9 tests and 1 subtests

Status Summary

Firefox

OK : 3[GitHub] 9[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS : 36[GitHub] 46[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL : 8[GitHub] 26[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]

Chrome

OK : 2
PASS : 36
FAIL : 7
TIMEOUT: 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /webaudio/the-audio-api/the-offlineaudiocontext-interface/ctor-offlineaudiocontext.html [wpt.fyi]
    • Executing "options-1": FAIL (Chrome: FAIL)
    • X new OfflineAudioContext({"sampleRate":12345}) incorrectly threw TypeError: "OfflineAudioContext constructor: Missing required 'length' member of OfflineAudioContextOptions.".: FAIL
    • AUDIT TASK RUNNER FINISHED: 1 out of 4 tasks were failed.: FAIL (Chrome: FAIL)

  • /webaudio/the-audio-api/the-offlineaudiocontext-interface/offlineaudiocontext-incremental-rendering.html [wpt.fyi]
    • Null length and no chunk size returns one render quantum: FAIL (Chrome: FAIL)
    • Null length and a chunk size returns the rounded chunk size: FAIL (Chrome: FAIL)
    • Finite length and a chunk size returns rounded chunks and the remainder: FAIL (Chrome: FAIL)
    • startRendering rejects when committed frames reach the render length: FAIL (Chrome: FAIL)
    • suspend at a chunk boundary is applied by the next startRendering call: FAIL (Chrome: TIMEOUT)
  • /webaudio/the-audio-api/the-offlineaudiocontext-interface/offlineaudiocontext-rendersizehint.html [wpt.fyi]
    • OfflineAudioContext with no hint hint: FAIL
    • OfflineAudioContext with "default" hint: FAIL
    • OfflineAudioContext with "hardware" hint: FAIL
    • OfflineAudioContext [Honored Exactly]: sampleRate 48000, renderSizeHint 1: FAIL
    • OfflineAudioContext [Honored Exactly]: sampleRate 48000, renderSizeHint 13: FAIL
    • OfflineAudioContext [Honored Exactly]: sampleRate 48000, renderSizeHint 127: FAIL
    • OfflineAudioContext [Honored Exactly]: sampleRate 48000, renderSizeHint 129: FAIL
    • OfflineAudioContext [Honored Exactly]: sampleRate 48000, renderSizeHint 256: FAIL
    • OfflineAudioContext [Honored Exactly]: sampleRate 48000, renderSizeHint 500: FAIL
    • OfflineAudioContext [Honored Exactly]: sampleRate 48000, renderSizeHint 16383: FAIL
    • OfflineAudioContext [Honored Exactly]: sampleRate 3000, renderSizeHint 18000: FAIL
    • OfflineAudioContext [Honored Exactly]: sampleRate 48000, renderSizeHint 288000: FAIL
    • OfflineAudioContext [Honored Exactly]: sampleRate 44100.1, renderSizeHint 264600: FAIL
    • OfflineAudioContext [Throws Exception]: sampleRate 48000, renderSizeHint 0: FAIL
    • OfflineAudioContext [Throws Exception]: sampleRate 3000, renderSizeHint 18001: FAIL
    • OfflineAudioContext [Throws Exception]: sampleRate 48000, renderSizeHint 288001: FAIL
    • OfflineAudioContext [Throws Exception]: sampleRate 48000, renderSizeHint -1: FAIL
  • /webaudio/the-audio-api/the-offlineaudiocontext-interface/offlineaudiocontext-suspend-rendersizehint.https.html [wpt.fyi]
    • Offline suspend quantizes to custom render quantum size: FAIL
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
You need to log in before you can comment on or make changes to this bug.