WebAudio: check if `window` is defined before accessing it
In certain environments (WebWorkers for instance) `window` is undefined. Accessing it will lead to an `Uncaught ReferenceError` that can't be handled by the calling C code. That's why I added a check that will return 0 in such case.
Showing
Please register or sign in to comment