Summary: | AudioBufferSourceNode is not being played on repeat visit and/or refresh | ||
---|---|---|---|
Product: | WebKit | Reporter: | Yuriy Kravets <yucikkravets> |
Component: | Web Audio | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW --- | ||
Severity: | Normal | CC: | cdumez, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | Safari 15 | ||
Hardware: | All | ||
OS: | iOS 15 |
Description
Yuriy Kravets
2021-12-13 15:12:22 PST
I have pinpointed the code that triggers such behaviour. This is somehow related to caching of WebWorker code. Adding time param to path to the worker code makes the browser load a fresh copy of that file, and this leads to some kind of reevaluation on the WebAudio side. const worker = new Worker(`../measure-processor-worker.js?v=${new Date().getTime()}`); the strange thing here is that the code seem to execute each time (tested through some console.logs) but the sound is not being played. What that code does is it generates JSON objects with information about what has to be played + duration, it is not calling any WebAudio related API functions. |