Replacing it with separately update PannerNode.positionX.value PannerNode.positionY.value and PannerNode.positionZ.value
results with similar times growth over time.
Is it a known issue? fixed on later versions? any alternatives?
Something is wrong with the the webgl audio since the beginning.
My projects always worked fine with the unity web player but when i have switched to the webgl, sometime the sound is distorted or the sound just stop for few seconds and then come back.
Sometime it’s when a lot of sounds is played and sometime it happen when rotate the audio listener. So JS_Sound_SetPosition can be a part of the problem but not completely.
They have made some fixe in the 2021.2 version but after a quick test, the problem is still present.
I will not continue to open my mouth because i’m not able to reproduce it easily and because it happen randomly in my games.
Well, the Unity Web Player was a Native Browser Add-On. It had the performance of the native desktop, and was dependent mostly on Unity’s implementation.
WebGL, WebAudio and other Web APIs that Unity use now to build for the web, are based on the Browser implementations, and are limited because of user privacy and other concerns. So they are sandboxed and some features have more tests for every call than their native equivalent/counterpart.
I do recall debugging an issue in the past with the time taken in Web Audio API growing as time passes. That ended up being a Chrome garbage collection bug, which they did fix back then. If you are able to create a test case, we could look again.
Oh no, indeed, the issue is still open. Sorry, I forgot about the status of the bug. Let’s hope rtoy is able to reply there, not sure what caused them to drop the issue after observing it themselves as well.