Hey,
I was experimenting with the Sound API and for some reason (one particular use-case we have), we need to switch a sound element from spatialized to ambient (and the other way around) while it’s being played. Turns out it doesn’t always work, though I’m not sure 1. we attempt to do it properly 2. if it’s an officially supported scenario.
Here’s a demo with steps to repro: https://www.babylonjs-playground.com/#PCY1J#107
In the same fashion, it seems like maxDistance
value changes are not taken into account while the media is playing.
Then here’s another question: attachToMesh
enables spatialization of the sound, what is the expected result when setting spatialSound
to false
while keeping the sound attached to the mesh?
Have a nice day!