Hi Chris,
I don't believe you can pass a JavaScript AudioBuffer to NaCl. You can send an ArrayBuffer, though, so I think you can use
AudioBuffer.getChannelData() to get a Float32Array, then use
Float32Array.buffer to get the underlying ArrayBuffer. IIRC, you can't send typed arrays directly, so you'll also need to send the byteOffset and the byteLength so you know the range of data to process. Or I suppose you could create a new ArrayBuffer with just the data from the Float32Array.
-Ben
On Thursday, May 12, 2016 at 3:29:59 PM UTC-7, Chris Weaver wrote: