@wasm-audio-decoders/flac
Advanced tools
Comparing version 0.1.13 to 0.1.14
{ | ||
"name": "@wasm-audio-decoders/flac", | ||
"version": "0.1.13", | ||
"version": "0.1.14", | ||
"description": "Web Assembly streaming FLAC decoder", | ||
@@ -5,0 +5,0 @@ "type": "module", |
# `@wasm-audio-decoders/flac` | ||
`@wasm-audio-decoders/flac` is a Web Assembly FLAC audio decoder. | ||
* 62.7 KiB minified bundle size | ||
* 64.6 KiB minified bundle size | ||
* Browser and NodeJS support | ||
@@ -6,0 +6,0 @@ * Built in Web Worker support |
@@ -9,9 +9,5 @@ /* ************************************************** | ||
function out(text) { | ||
console.log(text); | ||
} | ||
var out = text => console.log(text); | ||
function err(text) { | ||
console.error(text); | ||
} | ||
var err = text => console.error(text); | ||
@@ -22,7 +18,7 @@ function ready() {} | ||
function abort(what) { | ||
/** @param {string|number=} what */ function abort(what) { | ||
throw what; | ||
} | ||
for (var base64ReverseLookup = new Uint8Array(123), i = 25; i >= 0; --i) { | ||
for (var base64ReverseLookup = new Uint8Array(123), /*'z'+1*/ i = 25; i >= 0; --i) { | ||
base64ReverseLookup[48 + i] = 52 + i; | ||
@@ -37,3 +33,3 @@ base64ReverseLookup[65 + i] = i; | ||
function base64Decode(b64) { | ||
/** @noinline */ function base64Decode(b64) { | ||
var b1, b2, i = 0, j = 0, bLength = b64.length, output = new Uint8Array((bLength * 3 >> 2) - (b64[bLength - 2] == "=") - (b64[bLength - 1] == "=")); | ||
@@ -50,113 +46,97 @@ for (;i < bLength; i += 4, j += 3) { | ||
if (!EmscriptenWASM.wasm) Object.defineProperty(EmscriptenWASM, "wasm", {get: () => String.raw`dynEncode01d9fc6c0c93 /qõ¤æo-®Çr_¾.¥ò>?= ´Z^¨E¨_lLKÓ½Lgº½ï4É | ||
xø#~ÊQÊz~+âWÖÞ,ɲ^úÙ¹@¸Ëò°ÈÐúWØòhð6þr§·Ç¼FîC"Óàr$¼Aé_µåªÝâWïä'xÜkÈÀ¼ÐäYËÖû½GÐ%¡ÜS»¢üj(µÛÚýÀyla%H;w »ë*û1¬XÑî2n¼pÒ¤ÉOÕã}Ñ.qßO9äÊëÅBN}dé¡sÐÅW´xÀªÐBoÂix>å©üÁ9úßQôÆÞnH6Áøïv±véáÖ÷¿[Zö,üâJ | ||
ìî>Æ´i³âG*>$Æ36=}Pzaò ýÌz¨ÇKieZh&- | ||
äÔdfn@ã¥vßy§ËCñCq@aqs÷FÂ;¹ò@Ûa¦õ£Y»)Bþc=M]r, | ||
#³òúÚy Y»«Ê[,¤=}ÙÜäo¤^¹Z¾Àæä"Y#n?õ¼ÇpKïQ¸^s®õÃ2|ûKb±kDæñB©Òl»]"xúð_nS8âack'Æ#lü9å´´¡°¡ûË÷¾*Ï¡dlHï9æ\l½³Y¬åy»C*°9ô\"L·u<«)* | ||
«#°;c _Éûuc¶¾YÃípDEàEº"A15@'N:5mB¯2«2m²¸Zåx;ÒXE{6Éd×qîébÖ:ª< |