lovr.audio.setVolume

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

lovr.audio.setVolume(volume, units)

Arguments

NameTypeDefaultDescription
volumenumberThe master volume.
unitsVolumeUnit'linear'The units of the value.

Returns

Nothing

Notes

The volume will be clamped to a 0-1 range (0 dB).

See also