isSilent
function isSilent(samples, threshold): boolean;
Simple silent detection to only check the first and last bit from the sample
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
samples | AudioSamples | undefined | Audio sample data, this could be in a form of floating number of a byte number as long as the threshold value is given accordingly. |
threshold | number | SILENT_THRESHOLD | Silent threshold |
Returns
boolean
true when it is silent
Default Value
1.0 / 32767 assuming the sample is float value