Completed
Branch master (9b3c98)
by Rafael S.
03:30
created

externs.js   A

Complexity

Total Complexity 4
Complexity/F 1

Size

Lines of Code 23
Function Count 4

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 23
rs 10
c 0
b 0
f 0
wmc 4
mnd 0
bc 0
fnc 4
bpm 0
cpm 1
noi 3

3 Functions

Rating   Name   Duplication   Size   Complexity  
A ➔ encodeBlock 0 1 1
A ➔ decodeBlock 0 1 1
A ➔ decode 0 1 1
1
/**
2
 * @fileoverview Externs for imaadpcm 4.0
3
 *
4
 * @see https://github.com/rochars/imaadpcm
5
 * @externs
6
 */
7
8
/**
9
 * Encode 16-bit PCM samples into 4-bit IMA ADPCM samples.
10
 * @param {!Int16Array} samples A array of samples.
11
 * @return {!Uint8Array}
12
 */
13
function encode(samples) {}
0 ignored issues
show
Unused Code introduced by
The parameter samples is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...
14
15
/**
16
 * Decode IMA ADPCM samples into 16-bit PCM samples.
17
 * @param {!Uint8Array} adpcmSamples A array of ADPCM samples.
18
 * @param {number} blockAlign The block size.
19
 * @return {!Int16Array}
20
 */
21
function decode(adpcmSamples, blockAlign=256) {}
22
23
/**
24
 * Encode a block of 505 16-bit samples as 4-bit ADPCM samples.
25
 * @param {!Array<number>} block A sample block of 505 samples.
26
 * @return {!Array<number>}
27
 */
28
function encodeBlock(block) {}
0 ignored issues
show
Unused Code introduced by
The parameter block is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...
29
30
/**
31
 * Decode a block of ADPCM samples into 16-bit PCM samples.
32
 * @param {!Array<number>} block A adpcm sample block.
33
 * @return {!Array<number>}
34
 */
35
function decodeBlock(block) {}
0 ignored issues
show
Unused Code introduced by
The parameter block is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...