isLowVolume
function isLowVolume(gain, threshold): boolean;
Check if the provided gain above the low volume threshold, which is considered as low volume.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
gain | number | undefined | Floating point representation of the gain number |
threshold | number | LOW_VOLUME_THRESHOLD | - |
Returns
boolean
true if the gain is lower than the threshold