Sound/Audio: Object source and camera

Hello,

I’m looking to know and if it does not exist, created, objects (sprites for example) that produce sounds. And change the volume (or stop) of the sound produced according to the position of the camera and its zoom.

In fact; I would like to create a spatial sound, which if the camera is far from the object, then the sound is weaker. And conversely, if the camera is close, the sound is louder.

Does Phaser handle these kinds of sounds? Or has someone already done or has an idea of ​​how to make this system?

Thank you in advance !

You would have to do it yourself.

http://labs.phaser.io/view.html?src=src\audio\Web%20Audio\Volume%20Mute%20Rate%20Detune.js