mirror of https://bitbucket.org/ausocean/av.git
audio-player: changed syntax
This commit is contained in:
parent
fa2ae7b9c7
commit
9805506cf2
|
@ -49,13 +49,13 @@ const stepTable = [
|
|||
32767
|
||||
];
|
||||
|
||||
const byteDepth = 2, // We are working with 16-bit samples. TODO(Trek): make configurable.
|
||||
headSize = 8, // Number of bytes in the header of ADPCM.
|
||||
chunkLenSize = 4;
|
||||
const byteDepth = 2; // We are working with 16-bit samples. TODO(Trek): make configurable.
|
||||
const headSize = 8; // Number of bytes in the header of ADPCM.
|
||||
const chunkLenSize = 4;
|
||||
|
||||
let est = 0, // Estimation of sample based on quantised ADPCM nibble.
|
||||
idx = 0, // Index to step used for estimation.
|
||||
step = 0;
|
||||
let est = 0; // Estimation of sample based on quantised ADPCM nibble.
|
||||
let idx = 0; // Index to step used for estimation.
|
||||
let step = 0;
|
||||
|
||||
// decodeSample takes 4 bits which represents a single ADPCM nibble, and returns a 16 bit decoded PCM sample.
|
||||
function decodeSample(nibble) {
|
||||
|
|
Loading…
Reference in New Issue