index.d.ts   A
last analyzed

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 19
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 5
mnd 0
bc 0
fnc 2
dl 0
loc 19
rs 10
bpm 0
cpm 1
noi 0
c 0
b 0
f 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