Source:getVolume

Returns the current volume factor for the Source.

volume = Source:getVolume(units)

Arguments

NameTypeDefaultDescription
unitsVolumeUnit'linear'The units to return (linear or db).

Returns

NameTypeDescription
volumenumberThe volume of the Source.

See also