SoundService

extends Instance

Class fields

FieldXML typeValue
NamestringSoundService
ExplorerOrderstring50
ExplorerImageIndexstring31

Properties

4
AmbientReverb
ReverbType
FieldXML typeValue
NamestringAmbientReverb
summarystringThe ambient sound environment. May not work when using hardware sound
DistanceFactor
float
FieldXML typeValue
NamestringDistanceFactor
summarystringthe relative distance factor, compared to 1.0 meters.
DopplerScale
float
FieldXML typeValue
NamestringDopplerScale
summarystringThe doppler scale is a general scaling factor for how much the pitch varies due to doppler shifting in 3D sound. Doppler is the pitch bending effect when a sound comes towards the listener or moves away from it, much like the effect you hear when a train goes past you with its horn sounding. With dopplerscale you can exaggerate or diminish the effect.
RolloffScale
float
FieldXML typeValue
NamestringRolloffScale
summarystringSetting this value makes the sound drop off faster or slower. The higher the value, the faster volume will attenuate, and conversely the lower the value, the slower it will attenuate. For example a rolloff factor of 1 will simulate the real world, where as a value of 2 will make sounds attenuate 2 times quicker.

Functions

3
GetListener
() โ†’ Tuple
FieldXML typeValue
NamestringGetListener
PlayStockSound
(sound: SoundType) โ†’ void
FieldXML typeValue
NamestringPlayStockSound
SetListener
(listenerType: ListenerType, listener: Tuple) โ†’ void
FieldXML typeValue
NamestringSetListener