Skip to main content

isLowVolume

function isLowVolume(gain, threshold): boolean;

Check if the provided gain above the low volume threshold, which is considered as low volume.

Parameters

ParameterTypeDefault valueDescription
gainnumberundefinedFloating point representation of the gain number
thresholdnumberLOW_VOLUME_THRESHOLD-

Returns

boolean

true if the gain is lower than the threshold