Things were going well as we started adding audio to our project, but we recently started getting this error when we tried to call Play() on any AudioSource.
I have tried updating to Unity 2022.2.1f1, but i still get the error.
Funny thing, when I went back to 2021.3.16f1, I stopped having that issue and everything seems fine. Is there something different in 2022 that I need to account for when using Audio in WebGL? We are currently just using mp3 files.
In my case it always occurs on the second time played, and forever after. First time sound is called it plays as expected.
Perhaps someone from Unity’s WebGL team can tell us the path to where in the codebase we can comment the offending line until there’s an actual fix? I’m having a tough time locating it and would prefer not having to roll back again…
I find no report on the public issue tracker or in our internal backlog. I’m really sorry about this.
Some of you seem to say that it’s more of an inconvenience but @elit says it’s leaking memory which is a serious concern. Please you submit a bug report, the most helpful thing you can do is to provide a sample project highlight a reproduction of the issue.
Strangely I cannot find it on the public (or internal) issue tracker… Maybe it is still processing or something went wrong during the submission. Did you receive a url to track you issue that you could share?
I tried to use the FMOD plugin to try to bypass the issue but I had no luck. It is too convoluted. I could not figure out how to use it without changing the audio listeners and the audio sources, and worst installing their Studio.
A temp way to comment out the error would be ideal since it does not seem to cause any issues otherwise.
It seems like there is an issue according to this reply . The bug report as been created, and we’ll eventually get to it! The WebGL platform audio support is the most interesting challenge we have in my opinion. Can’t wait to see how it will evolve