Total Complexity | 4 |
Complexity/F | 1 |
Lines of Code | 23 |
Function Count | 4 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | /** |
||
13 | function encode(samples) {} |
||
|
|||
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) {} |
||
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) {} |
||
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.