1 | /** |
||
2 | * @fileoverview Externs for alawmulaw 5.0 |
||
3 | * |
||
4 | * @see https://github.com/rochars/alawmulaw |
||
5 | * @externs |
||
6 | */ |
||
7 | |||
8 | var alaw = {}; |
||
9 | var mulaw = {}; |
||
10 | |||
11 | // A-Law |
||
12 | /** |
||
13 | * Encode a 16-bit linear PCM sample as 8-bit A-Law. |
||
14 | * @param {number} sample A 16-bit PCM sample |
||
15 | * @return {number} |
||
16 | */ |
||
17 | alaw.encodeSample = function(sample) {} |
||
0 ignored issues
–
show
|
|||
18 | |||
19 | /** |
||
20 | * Decode a 8-bit A-Law sample as 16-bit PCM. |
||
21 | * @param {number} aLawSample The 8-bit A-Law sample |
||
22 | * @return {number} |
||
23 | */ |
||
24 | alaw.decodeSample = function(aLawSample) {} |
||
0 ignored issues
–
show
|
|||
25 | |||
26 | /** |
||
27 | * Encode 16-bit linear PCM samples as 8-bit A-Law samples. |
||
28 | * @param {!Int16Array} samples A array of 16-bit PCM samples. |
||
29 | * @return {!Uint8Array} |
||
30 | */ |
||
31 | alaw.encode = function(samples) {} |
||
0 ignored issues
–
show
|
|||
32 | |||
33 | /** |
||
34 | * Decode 8-bit A-Law samples into 16-bit linear PCM samples. |
||
35 | * @param {!Uint8Array} samples A array of 8-bit A-Law samples. |
||
36 | * @return {!Int16Array} |
||
37 | */ |
||
38 | alaw.decode = function(samples) {} |
||
0 ignored issues
–
show
|
|||
39 | |||
40 | // mu-Law |
||
41 | /** |
||
42 | * Encode a 16-bit linear PCM sample as 8-bit mu-Law. |
||
43 | * @param {number} sample A 16-bit PCM sample |
||
44 | * @return {number} |
||
45 | */ |
||
46 | mulaw.encodeSample = function(sample) {} |
||
0 ignored issues
–
show
|
|||
47 | |||
48 | /** |
||
49 | * Decode a 8-bit mu-Law sample as 16-bit PCM. |
||
50 | * @param {number} muLawSample The 8-bit mu-Law sample |
||
51 | * @return {number} |
||
52 | */ |
||
53 | mulaw.decodeSample = function(muLawSample) {} |
||
0 ignored issues
–
show
|
|||
54 | |||
55 | /** |
||
56 | * Encode 16-bit linear PCM samples into 8-bit mu-Law samples. |
||
57 | * @param {!Int16Array} samples A array of 16-bit PCM samples. |
||
58 | * @return {!Uint8Array} |
||
59 | */ |
||
60 | mulaw.encode = function(samples) {} |
||
0 ignored issues
–
show
|
|||
61 | |||
62 | /** |
||
63 | * Decode 8-bit mu-Law samples into 16-bit PCM samples. |
||
64 | * @param {!Uint8Array} samples A array of 8-bit mu-Law samples. |
||
65 | * @return {!Int16Array} |
||
66 | */ |
||
67 | mulaw.decode = function(samples) {} |
||
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.