GoogleChromeLabs / web-audio-samples

Web Audio API samples by Chrome Web Audio Team
https://bit.ly/web-audio-samples
Apache License 2.0
687 stars 197 forks source link

Atomics.wake is not a function at AudioWorkletProcessor.process (shared-buffer-worklet-processor.js:145) #202

Closed chaosprint closed 3 years ago

chaosprint commented 3 years ago

try to run the example on: https://googlechromelabs.github.io/web-audio-samples/audio-worklet/design-pattern/shared-buffer/ but it either makes the page completely crashed (Aw Snap) or throws this error:

Uncaught TypeError: Atomics.wake is not a function
    at AudioWorkletProcessor.process (shared-buffer-worklet-processor.js:145)
process @ shared-buffer-worklet-processor.js:145

looks like the issue comes from this line:

Atomics.wake(this._states, STATE.REQUEST_RENDER, 1);
hoch commented 3 years ago

Fixed by #198.