My code doesn't work in Firefox
aatishb opened this issue · 2 comments
aatishb commented
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
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
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