I believe I may have found a bug with positional sound components.
This problem occurs only on Internet Explorer 11 (We sadly have to support this browser at work), and it gives me the following console warning: No support for 3D audio found
.
My project has 2 positional sound components, and one that’s not positional. The issue occurs when I try to mute the global sound component system with app.systems.sound.volume = 0;
, it mutes the single non-positional sound component, while the two positional sounds keep playing at full volume.
As of now I’ve found two workarounds:
- Going through both sound components, and turning their individual volumes down with:
this.entity.sound.volume = 0
; - Muting the sound component system, and then turning the positional sounds into non-positional with:
this.entity.sound.positional = false;
As I mentioned before, this only occurs on browsers that don’t have 3D audio support.