lovr.audio.getVolume

Returns the master volume. All audio sent to the playback device has its volume multiplied by this factor.

volume = lovr.audio.getVolume(units)

Arguments

NameTypeDefaultDescription
unitsVolumeUnit'linear'The units to return (linear or db).

Returns

NameTypeDescription
volumenumberThe master volume.

Notes

The default volume is 1.0 (0 dB).

See also