Positional audio on web

Godot Version

4.6.2

Question

As the documentation page states, using 2D positional audio (AudioStreamPlayer2D) is not working correctly. I was able to solve this problem in one of two ways:

  • 1 Simply replace it with a AudioStreamPlayer, in wich case the sound is no longer localized
  • 2 Change the Playback type to Stream, wich causes the music to be audibly delayed at certain points, specifically when loading of new scenes happens

I am currently using solution 1, but I would like to keep positional sound, if possible. Is there a way to do so on a web export? I ask because the aformentioned documentation page states positional audio may not work correctly “depending on the node’s properties”, implying it is possible for it to work correctly under certain conditions

The documentation implies threads would be the way to solve the performance issues cause by solution 2, but how is not entierly clear

Thank you for your time and consideration