audio-player: changed syntax

This commit is contained in:
Trek H 2019-09-14 20:28:59 +09:30
parent fa2ae7b9c7
commit 9805506cf2
1 changed files with 6 additions and 6 deletions

View File

@ -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) {