Optional
fallA function that takes the distance from the listener and returns the volume of the sound. Default is a linear fall off function
A function that takes the distance from the listener and returns the volume of the sound. Default is a linear fall off function
The game object that will listen to the sound- eg: the player. Distance from the source is calculated from this object
Optional
loopSet to true to loop the sound, default is false
Optional
maxThe maximum distance the sound can be heard from (if outside this range, the volume of the sound will be 0)
Optional
minThe minimum distance the sound can be heard from (if inside this range, the volume of the sound will be 1)
Optional
playbackThe playback rate of the sound, default is 1
The source of the sound (eg: "sound.mp3")
Optional
startSet to false to prevent the sound from playing when the scene starts (default is true)
Optional
volumeThe volume of the sound, default is 1
Generated using TypeDoc
Used for configuring properties of a SoundEmitter game object
SoundEmitterOptions