Comparing version 1.1.3 to 1.1.4
@@ -1,13 +0,1 @@ | ||
/* | ||
imaadpcm | ||
JavaScript IMA ADPCM codec. | ||
Copyright (c) 2018 Rafael da Silva Rocha. | ||
https://github.com/rochars/imaadpcm | ||
References: | ||
http://www.cs.columbia.edu/~hgs/audio/dvi/ | ||
https://github.com/acida/pyima | ||
https://wiki.multimedia.cx/index.php/IMA_ADPCM | ||
*/ | ||
(function(q){function e(d){if(m[d])return m[d].a;var g=m[d]={m:d,f:!1,a:{}};q[d].call(g.a,g,g.a,e);g.f=!0;return g.a}var m={};e.l=q;e.h=m;e.b=function(d,g){e.c(d)||Object.defineProperty(d,"a",{configurable:!1,enumerable:!0,get:g})};e.i=function(d){var g=d&&d.g?function(){return d["default"]}:function(){return d};e.b(g,g);return g};e.c=function(d){return Object.prototype.hasOwnProperty.call(d,"a")};e.j="";return e(e.o=0)})([function(){function q(b){return 32768<b?b-65536:b}function e(b){var a=b-h; | ||
@@ -17,2 +5,2 @@ 0<=a?b=0:(b=8,a=-a);var c=r[n],f=c>>3;a>c&&(b|=4,a-=c,f+=c);c>>=1;a>c&&(b|=2,a-=c,f+=c);c>>=1;a>c&&(b|=1,f+=c);a=b;h=a&8?h-f:h+f;-32768>h?h=-32768:32767<h&&(h=32767);n+=t[a&7];0>n?n=0:88<n&&(n=88);return b}function m(b){var a=0;b&4&&(a+=p);b&2&&(a+=p>>1);b&1&&(a+=p>>2);a+=p>>3;b&8&&(a=-a);k+=a;32767<k?k=32767:-32767>k&&(k=-32767);l+=t[b];0>l?l=0:88<l&&(l=88);p=r[l];return k}function d(b){var a=b[0];e(a);var c=[];c.push(a&255);c.push(a>>8&255);c.push(n);c.push(0);for(a=3;a<b.length;a+=2){var f=e(b[a]), | ||
3024,3327,3660,4026,4428,4871,5358,5894,6484,7132,7845,8630,9493,10442,11487,12635,13899,15289,16818,18500,20350,22385,24623,27086,29794,32767],h=0,n=0,k=0,l=0,p=7;window.imaadpcm=window.imaadpcm?window.imaadpcm:{};window.imaadpcm.encode=function(b){for(var a=[],c=[],f=0;f<b.length;f++)if(c.push(b[f]),0==f%505&&0!=f||f==b.length-1)a=a.concat(d(c)),c=[];return a};window.imaadpcm.decode=function(b,a){a=void 0===a?256:a;for(var c=[],d=[],e=0;e<b.length;e++)0==e%a&&0!=e&&(c=c.concat(g(d)),d=[]),d.push(b[e]); | ||
return c};window.imaadpcm.encodeBlock=d;window.imaadpcm.decodeBlock=g}]); | ||
return c};window.imaadpcm.encodeBlock=d;window.imaadpcm.decodeBlock=g}]); |
@@ -1,2 +0,2 @@ | ||
/*! | ||
/* | ||
* imaadpcm | ||
@@ -3,0 +3,0 @@ * JavaScript IMA ADPCM codec. |
{ | ||
"name": "imaadpcm", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "JavaScript IMA ADPCM codec.", | ||
@@ -28,6 +28,5 @@ "homepage": "https://github.com/rochars/imaadpcm", | ||
"coverage": "nyc report --reporter=lcov > coverage.lcov && codecov", | ||
"compile": "google-closure-compiler-js dist/imaadpcm.js > dist/imaadpcm-min.js --compilationLevel=ADVANCED", | ||
"doc": "./node_modules/.bin/jsdoc index.js -d docs -r README.md -t node_modules/docdash", | ||
"pack": "webpack && npm run compile && npm run doc", | ||
"build": "npm run lint && npm run pack && npm run test-dist && npm test" | ||
"pack": "webpack && npm run test-dist", | ||
"build": "npm run lint && npm run pack && npm test && npm run doc" | ||
}, | ||
@@ -34,0 +33,0 @@ "devDependencies": { |
@@ -6,9 +6,8 @@ # imaadpcm | ||
References: | ||
http://www.cs.columbia.edu/~hgs/audio/dvi/ | ||
https://github.com/acida/pyima | ||
[![NPM version](https://img.shields.io/npm/v/imaadpcm.svg?style=for-the-badge)](https://www.npmjs.com/package/imaadpcm) [![Docs](https://img.shields.io/badge/docs-online-blue.svg?style=for-the-badge)](https://rochars.github.io/imaadpcm/index.html) | ||
[![Codecov](https://img.shields.io/codecov/c/github/rochars/imaadpcm.svg?style=flat-square)](https://codecov.io/gh/rochars/imaadpcm) [![Unix Build](https://img.shields.io/travis/rochars/imaadpcm.svg?style=flat-square)](https://travis-ci.org/rochars/imaadpcm) [![Windows Build](https://img.shields.io/appveyor/ci/rochars/imaadpcm.svg?style=flat-square&logo=appveyor)](https://ci.appveyor.com/project/rochars/imaadpcm) [![Scrutinizer](https://img.shields.io/scrutinizer/g/rochars/imaadpcm.svg?style=flat-square&logo=scrutinizer)](https://scrutinizer-ci.com/g/rochars/imaadpcm/) | ||
## About | ||
IMA ADPCM codec for Node.js and the browser. | ||
## Install | ||
@@ -66,2 +65,6 @@ ``` | ||
## References | ||
http://www.cs.columbia.edu/~hgs/audio/dvi/ | ||
https://github.com/acida/pyima | ||
## LICENSE | ||
@@ -68,0 +71,0 @@ Copyright (c) 2018 Rafael da Silva Rocha. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
89
76905
14
937