The SoundService class inherits from Instance. It cannot be instantiated.


Pubfield ReverbType AmbientReverb

The ambient sound environment. May not work when using hardware sound

Pubfield float DistanceFactor

the relative distance factor, compared to 1.0 meters.

Pubfield float DopplerScale

The 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 doppler scale, you can exaggerate or diminish the effect.

Pubfield bool RespectFilteringEnabled

Pubfield float RolloffScale

Setting this value makes the sound drop off faster or slower. The higher the value, the faster the volume will attenuate, and conversely the lower the value, the slower it will attenuate. For example, a roll-off factor of 1 will simulate the real world, whereas a value of 2 will make sounds attenuate 2 times quicker.


Protmethod bool BeginRecording() [RobloxScriptSecurity]

Pubmethod Tuple GetListener()

Pubmethod void PlayLocalSound(Instance sound)

Protmethod void PlayStockSound(SoundType sound) [RobloxScriptSecurity]

Pubmethod void SetListener(ListenerType listenerType, Tuple listener)

Protmethod bool SetRecordingDevice(int deviceIndex) [RobloxScriptSecurity]

Protmethod Dictionary EndRecording() [RobloxScriptSecurity] [yield]

Protmethod Dictionary GetRecordingDevices() [RobloxScriptSecurity] [yield]

External links

Community content is available under CC-BY-SA unless otherwise noted.