GoogleChromeLabs / audioworklet-polyfill

🔊 Polyfill AudioWorklet using the legacy ScriptProcessor API.
https://googlechromelabs.github.io/audioworklet-polyfill/
Apache License 2.0
195 stars 20 forks source link

My code doesn't work in Firefox #5

Closed aatishb closed 6 years ago

aatishb commented 6 years ago

I have a demo of a sine wave, live here and code here. It produces sound in Chrome and shows the spectrum. In Firefox I get no sound or spectrum, and no error in the console.

It seems like the issue is the code after

let sound = new AudioWorkletNode(audio, 'audio-processor');

is not being executed. Wonder if anyone could offer any insight. Thanks.

aatishb commented 6 years ago

Wonder if anyone can help with this. It works fine in Chrome, but doesn't work in Firefox or Safari with no error provided.

developit commented 6 years ago

Your demo works with 1.1.0 now!

I had to remix your glitch to request audio playback permission, but that's unrelated to the AudioWorklet polyfill: https://glitch.com/edit/#!/resolute-peak