Since @Deltakosh added “sound sprites” to BJS, I have been experimenting with the other functionalities of BJS’s sound capabilities. Some interesting features
So I have been playing with “spatial audio” and looking at this Playground The music is attached to the box and as the cylinder and camera move away from the box the sound dies away - and it works well.
But what is the impact on scene efficiency? Is the code continuously checking how far the listener is from the box? And if you have 5 or 6, perhaps more, of these files playing is it weighing down the scene engine? In a big scene where one sound disappears and then another one starts does it lead to inefficiency?
Can they be turned off easily somehow without having to be constantly checking for the camera position as someone moves around a large scene?