GoogleChromeLabs/audioworklet-polyfill

'currentTime' and 'sampleRate' remain 0 in simulated AudioWorkletGlobalScope

Closed this issue · 2 comments

These lines don't do anything, because the fake AudioContext properties are copied into global scope once on initialization.

Ah - good catch, I should have exempted them to avoid that shadowing.

Thanks John - it looks like I'd only tested property access, which was working (self.currentTime, old lint habits). This issue is now fixed in 1.1.0.