Source:setVolume

Edit

Sets the current volume factor for the Source.

Source:setVolume(volume, units)

Arguments

NameTypeDefaultDescription
volumenumber The 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