isMono
function isMono(channels, threshold): boolean;
Check if provided channels are mono or stereo
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
channels | AudioSamples[] | undefined | Audio channels and assuming the inputs are in floating point form |
threshold | number | MONO_THRESHOLD | Mono detection threshold, default to floating point form |
Returns
boolean
true if they are mono, otherwise stereo
Default Value
1.0 / 32767