| Total Complexity | 8 |
| Complexity/F | 1 |
| Lines of Code | 60 |
| Function Count | 8 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | /** |
||
| 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) {} |
||
| 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) {} |
||
| 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) {} |
||
| 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) {} |
||
| 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) {} |
||
| 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) {} |
||
| 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) {} |
||
| 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) {} |