Parameter | Description |
---|---|
sound | sound to play |
range | distance within which the sound is audible |
volume | sound volume |
pitch | sound pitch |
loopmode | set to true for looping or false to play once |
Returns a speaker that can be used to control the sound.
This method may return nil if the listener is out of range of the sound.