Source:setVolume

Sets the current volume factor for the Source.

Source:setVolume(volume, units)

Arguments

NameTypeDefaultDescription
volumenumberThe new 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