Phaser API Documentation

  Version: 
x: number

Description:

Sets the x position of this Sound in Spatial Audio space.

This only has any effect if the sound was created with a SpatialSoundConfig object.

Also see the WebAudioSoundManager.setListenerPosition method.

If you find that the sound becomes too quiet, too quickly, as it moves away from the listener, then try different refDistance property values when configuring the spatial sound.

Type:
number
Since: 3.60.0