w3c / webcodecs

WebCodecs is a flexible web API for encoding and decoding audio and video.
https://w3c.github.io/webcodecs/
Other
941 stars 132 forks source link

Add AudioDataInit.transfer #688

Closed Djuffin closed 1 year ago

Djuffin commented 1 year ago

This should allow to avoid extra copies while constructing AudioData from audio samples

Addressing: https://github.com/w3c/webcodecs/issues/104


Preview | Diff

Djuffin commented 1 year ago

The same as https://github.com/w3c/webcodecs/pull/676 but for AudioData

Djuffin commented 1 year ago

@padenot could you take a look, this is very similar to what's been done for VideoFrame.