I have a Float32Array that I want to pass to a Worker more precisely an AudioWorkletProcessor. I can pass it in Chrome but firefox don't accept the type as a Transferable object.
I found a solution which is to stringify the whole array as so:
JSON.stringify( Array.from( this.audioBuffer.getChannelData( i ) ) )
now the problem is depending on the length of the audio buffer the process is pretty expensive and during the execution the main thread get stucked.
Any alternatives for example convert a Float32Array to an ArrayBuffer