Skip to content

Add OfflineAudioContext incremental rendering feature - #4475

Open
Rutujakirad wants to merge 3 commits into
web-platform-dx:mainfrom
Rutujakirad:add-offline-audio-context-incremental-rendering
Open

Rutujakirad wants to merge 3 commits into
web-platform-dx:mainfrom
Rutujakirad:add-offline-audio-context-incremental-rendering

Conversation

@Rutujakirad

Copy link
Copy Markdown

Summary

  • Adds a new feature definition for OfflineAudioContext incremental rendering (startRendering(chunkSize) and close()).
  • Keeps the existing Baseline-high offline-audio-context feature unchanged.
  • Omits compat_features for now because no BCD keys exist yet.

Fixes #4473

@github-actions github-actions Bot added the feature definition Creating or defining new features or groups of features. label Oct 6, 2026
@ddbeck

ddbeck commented Oct 12, 2026

Copy link
Copy Markdown
Collaborator

See #4473 (comment) for some discussion related to this. @Rutujakirad are you connected to the implementation of this feature (or its specification) in some way? If you're in a position to review the issue comment, then great. Otherwise, we should give the original reporter a few days to respond before starting in on reviewing this PR. Thanks for your understanding.

@Rutujakirad

Copy link
Copy Markdown
Author

Hi @ddbeck
Thanks for the context! I'm not directly involved in the implementation or specification. My PR adds a feature definition to the WebDX catalog based on the Web Audio API specification. I'll review the linked discussion, and I'm happy to wait for the original reporter's input before the review proceeds.

@@ -0,0 +1,4 @@
name: OfflineAudioContext incremental rendering
description: The optional `chunkSize` argument of `OfflineAudioContext.startRendering()` returns an `AudioBuffer` of at most that many sample frames, so you can render long or unbounded audio graphs incrementally. The `close()` method stops rendering.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Drawing on #4473 (comment):

Suggested change
description: The optional `chunkSize` argument of `OfflineAudioContext.startRendering()` returns an `AudioBuffer` of at most that many sample frames, so you can render long or unbounded audio graphs incrementally. The `close()` method stops rendering.
description: >
The `startRendering()` method of the `OfflineAudioContext` API accepts an optional chunk size argument, which sets the number of sample frames to render in a `AudioBuffer`.
You can use this to process audio incrementally, reducing the memory required to process high amounts of data.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @ddbeck

Thanks for reviewing and suggesting the change! I've updated the description accordingly. Could you please take another look and Let me know if it looks good
Thank you!

@ddbeck ddbeck added the needs compat keys This PR or issue concerns a feature that does not have browser compat data keys. label Oct 21, 2026
@ddbeck
ddbeck self-requested a review October 21, 2026 11:02
Comment thread features/offline-audio-context-incremental-rendering.yml Outdated
@ddbeck
ddbeck enabled auto-merge (squash) October 22, 2026 10:02

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature definition Creating or defining new features or groups of features. needs compat keys This PR or issue concerns a feature that does not have browser compat data keys.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OfflineAudioContext Incremental Rendering

2 participants