Source:setVolume
EditSets the current volume factor for the Source.
Source:setVolume(volume, units)
Arguments
Name | Type | Default | Description |
volume | number | The new volume. | |
units | VolumeUnit | 'linear' | The units of the value. |
Returns
Nothing
Notes
The volume will be clamped to a 0-1 range (0 dB).