WebAudio / web-audio-api

The Web Audio API v1.0, developed by the W3C Audio WG
https://webaudio.github.io/web-audio-api/
Other
1.05k stars 166 forks source link

Expose AudioBuffer to DedicatedWorker #2289

Closed chcunningham closed 3 years ago

chcunningham commented 3 years ago

This updates AudioBuffer exposure to match WebCodecs.

WebCodecs uses AudioBuffer as a container of unencoded audio. https://wicg.github.io/web-codecs/#dom-audioframe-buffer

WebCodecs AudioDecoder and AudioEncoder classes are exposed to DedicatedWorker to facilitate offloaded codec IO.

Fixes #2288


Preview | Diff

rtoy commented 3 years ago

Is this supposed to fix WebAudio/web-audio-api-v2#111? I think the bug got moved to v2?

rtoy commented 3 years ago

Teleconf: After discussing this in the group, we think it's best to handle this as a high priority issue WebAudio/web-audio-api-v2#111 for V2. The consensus was that other things are really needed as well for the AudioBuffer, including reducing memory consumption.

We'd like to close this PR and have a new one for V2. (Can't move PRs from v1 to v2).

WDYT @chcunningham ?

chcunningham commented 3 years ago

Yep, I think thats fine, so long as we can continue discussing and ultimately merge it with the same urgency (this blocks WebCodecs). I'll re-open this in V2.