audiocogs/aurora.js

Window Not Defined

Opened this issue · 0 comments

Hello,
I am trying to use Aurora to decode AAC audio in a web worker.

When I do the following:
importScripts("/scripts/aurora/aurora.js");
importScripts("/scripts/aurora/decoders/aac.js");

I get this error:
VM7 aac.js:346 Uncaught ReferenceError: window is not defined
at Object.4../adts_demuxer (VM7 aac.js:346)
at s (VM7 aac.js:1)
at e (VM7 aac.js:1)
at VM7 aac.js:1
at self.onmessage (soundProcessorWorker.js:6)

I downloaded the latest release versions of Aurora and AAC, about an hour ago.

Does this mean that I am not able to use Aurora in a webworker?

Thanks for your help :)

Merry Christmas