lovr.audio.getDopplerEffect

Returns the parameters that control the simulated doppler effect: The effect intensity and the speed of sound.

factor, speedOfSound = lovr.audio.getDopplerEffect()

Arguments

None

Returns

NameTypeDescription
factornumberThe doppler effect scaling factor.
speedOfSoundnumberThe speed of sound, in meters per second.

Notes

The default factor is 1 and the default speed of sound is 343.29.

See also