Re: [web-audio-api] (AudioBufferDirectAccess): AudioBuffer direct access (#124)

> [Original comment](https://www.w3.org/Bugs/Public/show_bug.cgi?id=17401#2) by Olivier Thereaux on W3C Bugzilla. Thu, 07 Jun 2012 14:58:58 GMT

More feedback from Philip in http://lists.w3.org/Archives/Public/public-audio/2012AprJun/0485.html


The suggested change effectively requires the audio data to be copied when  
the audioprocess callback returns, which isn't necessary to solve the  
problem. We suggest defining it in terms of ownership transfer,[1] like  
when a typed array is used with postMessage.

In other words, the Float32Array should be neutered, after which reading  
the length property returns 0.[2]

[1] http://www.whatwg.org/specs/web-apps/current-work/multipage/common-dom-interfaces.html#transferable-objects
[2] http://www.khronos.org/registry/typedarray/specs/latest/#7

---
Reply to this email directly or view it on GitHub:
https://github.com/WebAudio/web-audio-api/issues/124#issuecomment-24244370

Received on Wednesday, 11 September 2013 14:34:55 UTC