Repository navigation
Add OfflineAudioContext incremental rendering feature - #4475
Rutujakirad wants to merge 3 commits into
Conversation
|
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. |
|
Hi @ddbeck |
| @@ -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. | |||
There was a problem hiding this comment.
Drawing on #4473 (comment):
| 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. |
There was a problem hiding this comment.
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!
Summary
startRendering(chunkSize)andclose()).offline-audio-contextfeature unchanged.compat_featuresfor now because no BCD keys exist yet.Fixes #4473