Closed
Description
As TypedArray
no longer exists as of Go 1.13, there is no way to convert slices other than []byte
from/to TypedArray objects other than Uint8Array
. It is technically possible to do this by using encoding/binary
, but I'm worried this conversion is not efficient.
As there are Web APIs that take such TypedArray objects (e.g., AudioBuffer.copyToChannel
takes a Float32Array
[1]), it would be very useful if syscall/js
had such conversion functions.
CC @neelance
[1] https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/copyToChannel