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
|
|||
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
|
|||
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
|
|||
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
|
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.