lovr.audio.setVolume
EditSets the master volume. All audio sent to the playback device has its volume multiplied by this factor.
lovr.audio.setVolume(volume, units)
Arguments
Name | Type | Default | Description |
volume | number | The master volume. | |
units | VolumeUnit | 'linear' | The units of the value. |
Returns
Nothing
Notes
The volume will be clamped to a 0-1 range (0 dB).