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

in Safari: TypeError: undefined is not an object (evaluating 'processor.properties') #27

Open qwertmax opened 4 years ago

qwertmax commented 4 years ago

when I'm trying to create WorkletNode in Safari, I'm getting an error

TypeError: undefined is not an object (evaluating 'processor.properties')

in this code:

function getProcessorsForContext (audioContext) {
  return audioContext.$$processors || (audioContext.$$processors = {});
}

in safari, there is no any processors...

Does anybody have any idea what could help ?