Completed
Push — master ( 1923f9...12bd6d )
by Rafael S.
01:13
created

externs.js ➔ encode   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 1
rs 10
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) {}
0 ignored issues
show
Unused Code introduced by
The parameter blockAlign 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...
Unused Code introduced by
The parameter adpcmSamples 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...
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...