From fa2ae7b9c73898979f1e1508cec4c86963ed7b2f Mon Sep 17 00:00:00 2001 From: Trek H Date: Fri, 6 Sep 2019 14:39:20 +0930 Subject: [PATCH] audio-player: switched order of HTML elements and commented adpcm tables --- cmd/audio-player/adpcm.js | 2 ++ cmd/audio-player/index.html | 14 ++++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) 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 @@
+
+ URL: +
+
+ +
+
+
@@ -24,12 +32,6 @@
-
- URL: -
-
- -