diff --git a/cmd/audio-player/adpcm.js b/cmd/audio-player/adpcm.js index e1150e1a..958a295c 100644 --- a/cmd/audio-player/adpcm.js +++ b/cmd/audio-player/adpcm.js @@ -27,11 +27,13 @@ LICENSE Reference algorithms for ADPCM compression and decompression are in part 6. */ +// Table of index changes (see spec). const indexTable = [ -1, -1, -1, -1, 2, 4, 6, 8, -1, -1, -1, -1, 2, 4, 6, 8 ]; +// Quantize step size table (see spec). const stepTable = [ 7, 8, 9, 10, 11, 12, 13, 14, 16, 17, 19, 21, 23, 25, 28, 31, diff --git a/cmd/audio-player/index.html b/cmd/audio-player/index.html index 8578b10f..c7d7ab04 100644 --- a/cmd/audio-player/index.html +++ b/cmd/audio-player/index.html @@ -13,6 +13,14 @@