Methods
resample(samples, oldSampleRate, sampleRate, detailsnullable) → (non-null) {Float64Array}
Change the sample rate of the samples to a new sample rate.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
samples |
Array | TypedArray | The original samples. | |
oldSampleRate |
number | The original sample rate. | |
sampleRate |
number | The target sample rate. | |
details |
Object |
<nullable> |
The extra configuration, if needed. |
Returns:
the new samples.
- Type
- Float64Array