Total Complexity | 2 |
Complexity/F | 1 |
Lines of Code | 19 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | // Type definitions for wave-resampler 1.0 |
||
2 | // Project: https://github.com/rochars/wave-resampler |
||
3 | // Definitions by: Rafael da Silva Rocha <https://github.com/rochars> |
||
4 | // Definitions: https://github.com/rochars/wave-resampler |
||
5 | |||
6 | /** |
||
7 | * Change the sample rate of the samples to a new sample rate. |
||
8 | * @param {!Array|!TypedArray} samples The original samples. |
||
9 | * @param {number} oldSampleRate The original sample rate. |
||
10 | * @param {number} sampleRate The target sample rate. |
||
11 | * @param {?Object} details The extra configuration, if needed. |
||
12 | * @return {!Float64Array} the new samples. |
||
13 | */ |
||
14 | export function resample( |
||
15 | samples: ArrayLike<number>, |
||
16 | oldSampleRate: number, |
||
17 | sampleRate: number, |
||
18 | details?: object): ArrayLike<number>; |
||
19 |