Skip to content

Commit

Permalink
chore: publish releases
Browse files Browse the repository at this point in the history
  • Loading branch information
eshaz committed Jan 16, 2024
1 parent 481fa49 commit 514808d
Show file tree
Hide file tree
Showing 50 changed files with 2,585 additions and 3,347 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ flac-decoder-minify: $(FLAC_EMSCRIPTEN_BUILD)
OUTPUT_NAME=EmscriptenWasm \
MODULE=$(FLAC_DECODER_MODULE) \
MODULE_MIN=$(FLAC_DECODER_MODULE_MIN) \
COMPRESSION_ITERATIONS=180 \
COMPRESSION_ITERATIONS=488 \
npm run minify
cp $(FLAC_DECODER_MODULE) $(FLAC_DECODER_MODULE_MIN) $(FLAC_DECODER_MODULE_MIN).map $(DEMO_PATH)

Expand All @@ -63,7 +63,7 @@ ogg-vorbis-decoder-minify: $(OGG_VORBIS_EMSCRIPTEN_BUILD)
OUTPUT_NAME=EmscriptenWasm \
MODULE=$(OGG_VORBIS_DECODER_MODULE) \
MODULE_MIN=$(OGG_VORBIS_DECODER_MODULE_MIN) \
COMPRESSION_ITERATIONS=420 \
COMPRESSION_ITERATIONS=122 \
npm run minify
cp $(OGG_VORBIS_DECODER_MODULE) $(OGG_VORBIS_DECODER_MODULE_MIN) $(OGG_VORBIS_DECODER_MODULE_MIN).map $(DEMO_PATH)

Expand Down Expand Up @@ -106,7 +106,7 @@ opus-decoder-minify: $(OPUS_DECODER_EMSCRIPTEN_BUILD)
OUTPUT_NAME=EmscriptenWasm \
MODULE=$(OPUS_DECODER_MODULE) \
MODULE_MIN=$(OPUS_DECODER_MODULE_MIN) \
COMPRESSION_ITERATIONS=373 \
COMPRESSION_ITERATIONS=33 \
npm run minify
cp $(OPUS_DECODER_MODULE) $(OPUS_DECODER_MODULE_MIN) $(OPUS_DECODER_MODULE_MIN).map $(DEMO_PATH)

Expand All @@ -130,7 +130,7 @@ mpg123-decoder-minify: $(MPG123_EMSCRIPTEN_BUILD)
OUTPUT_NAME=EmscriptenWasm \
MODULE=$(MPG123_MODULE) \
MODULE_MIN=$(MPG123_MODULE_MIN) \
COMPRESSION_ITERATIONS=40 \
COMPRESSION_ITERATIONS=28 \
npm run minify
cp $(MPG123_MODULE) $(MPG123_MODULE_MIN) $(MPG123_MODULE_MIN).map $(DEMO_PATH)

Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ Pre-built minified JS files are available from NPM and in each decoder's `dist`

### [`mpg123-decoder`](https://github.com/eshaz/wasm-audio-decoders/tree/master/src/mpg123-decoder)
Decodes MPEG Layer I/II/III into PCM
* 74.5 KiB minified bundle size
* 84.6 KiB minified bundle size
* Browser and NodeJS support
* Built in Web Worker support
* Based on [`mpg123`](https://www.mpg123.de/)
* Install using [NPM](https://www.npmjs.com/package/mpg123-decoder)

### [`@wasm-audio-decoders/flac`](https://github.com/eshaz/wasm-audio-decoders/tree/master/src/flac)
Decodes FLAC and Ogg FLAC data into PCM
* 65.2 KiB minified bundle size
* 64.8 KiB minified bundle size
* Browser and NodeJS support
* Built in Web Worker support
* Multichannel decoding (up to 8 channels)
Expand All @@ -32,7 +32,7 @@ Decodes FLAC and Ogg FLAC data into PCM

### [`ogg-opus-decoder`](https://github.com/eshaz/wasm-audio-decoders/tree/master/src/ogg-opus-decoder)
Decodes Ogg Opus data into PCM
* 108.0 KiB minified bundle size
* 108.5 KiB minified bundle size
* Browser and NodeJS support
* Built in Web Worker support
* Multichannel decoding (up to 255 channels)
Expand All @@ -41,7 +41,7 @@ Decodes Ogg Opus data into PCM

### [`opus-decoder`](https://github.com/eshaz/wasm-audio-decoders/tree/master/src/opus-decoder)
Decodes raw Opus audio frames into PCM
* 84.6 KiB minified bundle size
* 85.0 KiB minified bundle size
* Browser and NodeJS support
* Built in Web Worker support
* Multichannel decoding (up to 255 channels)
Expand All @@ -51,7 +51,7 @@ Decodes raw Opus audio frames into PCM

### [`@wasm-audio-decoders/ogg-vorbis`](https://github.com/eshaz/wasm-audio-decoders/tree/master/src/ogg-vorbis)
Decodes Ogg Vorbis data into PCM
* 97.6 KiB minified bundle size
* 97.5 KiB minified bundle size
* Browser and NodeJS support
* Built in Web Worker support
* Multichannel decoding (up to 255 channels)
Expand Down
255 changes: 84 additions & 171 deletions demo/flac-decoder.js

Large diffs are not rendered by default.

165 changes: 80 additions & 85 deletions demo/flac-decoder.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion demo/flac-decoder.min.js.map

Large diffs are not rendered by default.

600 changes: 263 additions & 337 deletions demo/mpg123-decoder.js

Large diffs are not rendered by default.

Binary file modified demo/mpg123-decoder.min.js
Binary file not shown.
2 changes: 1 addition & 1 deletion demo/mpg123-decoder.min.js.map

Large diffs are not rendered by default.

526 changes: 223 additions & 303 deletions demo/ogg-opus-decoder.js

Large diffs are not rendered by default.

Binary file modified demo/ogg-opus-decoder.min.js
Binary file not shown.
2 changes: 1 addition & 1 deletion demo/ogg-opus-decoder.min.js.map

Large diffs are not rendered by default.

465 changes: 197 additions & 268 deletions demo/ogg-vorbis-decoder.js

Large diffs are not rendered by default.

375 changes: 193 additions & 182 deletions demo/ogg-vorbis-decoder.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion demo/ogg-vorbis-decoder.min.js.map

Large diffs are not rendered by default.

526 changes: 223 additions & 303 deletions demo/opus-decoder.js

Large diffs are not rendered by default.

Binary file modified demo/opus-decoder.min.js
Binary file not shown.
2 changes: 1 addition & 1 deletion demo/opus-decoder.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"scripts": {
"du": "find src -iname \"*.min.js\" -exec du -b {} \\;",
"du": "find src -iname \"*.min.js\" -printf \"%s %p\n\" | perl -pe 's|^(\\d+)(.*)|sprintf(\"%10.1f\", $1/1024).$2|e;'\\;",
"configure": "make configure -j16",
"build": "make clean && make -j16",
"build-puff": "node src/common/src/puff/build_puff.js",
Expand Down
2 changes: 1 addition & 1 deletion src/flac/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# `@wasm-audio-decoders/flac`

`@wasm-audio-decoders/flac` is a Web Assembly FLAC / Ogg FLAC audio decoder.
* 64.6 KiB minified bundle size
* 64.8 KiB minified bundle size
* Browser and NodeJS support
* Built in Web Worker support
* Multichannel decoding (up to 8 channels)
Expand Down
255 changes: 84 additions & 171 deletions src/flac/dist/flac-decoder.js

Large diffs are not rendered by default.

165 changes: 80 additions & 85 deletions src/flac/dist/flac-decoder.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/flac/dist/flac-decoder.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/flac/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/flac/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wasm-audio-decoders/flac",
"version": "0.2.3",
"version": "0.2.4",
"description": "Web Assembly streaming FLAC decoder",
"type": "module",
"main": "./index.js",
Expand Down
Binary file modified src/flac/src/EmscriptenWasm.js
Binary file not shown.
2 changes: 1 addition & 1 deletion src/mpg123-decoder/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# `mpg123-decoder`

`mpg123-decoder` is a Web Assembly MPEG Layer (I/II/III) audio decoder.
* 74.5 KiB minified bundle size
* 84.6 KiB minified bundle size
* Browser and NodeJS support
* Built in Web Worker support
* Based on [`mpg123`](https://www.mpg123.de/)
Expand Down
600 changes: 263 additions & 337 deletions src/mpg123-decoder/dist/mpg123-decoder.js

Large diffs are not rendered by default.

Binary file modified src/mpg123-decoder/dist/mpg123-decoder.min.js
Binary file not shown.
2 changes: 1 addition & 1 deletion src/mpg123-decoder/dist/mpg123-decoder.min.js.map

Large diffs are not rendered by default.

Binary file modified src/mpg123-decoder/src/EmscriptenWasm.js
Binary file not shown.
2 changes: 1 addition & 1 deletion src/ogg-opus-decoder/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# `ogg-opus-decoder`

`ogg-opus-decoder` is a Web Assembly Ogg Opus audio decoder.
* 108.0 KiB minified bundle size
* 108.5 KiB minified bundle size
* Browser and NodeJS support
* Built in Web Worker support
* Multichannel decoding (up to 255 channels)
Expand Down
Loading

0 comments on commit 514808d

Please sign in to comment.