ClubMix.ai MP3 encoder source and notices ClubMix.ai encodes with LAME 3.100 (LGPL; see LAME-COPYING and LAME-LICENSE) using the MIT-licensed mp3-mediarecorder WebAssembly build (see LICENSE). LAME project: https://lame.sourceforge.io/ mp3-mediarecorder revision: 1905aeef4513550000b14432a244baee85f3e8fe https://github.com/elsmr/mp3-mediarecorder/tree/1905aeef4513550000b14432a244baee85f3e8fe This archive contains the original LAME source tarball, the exact upstream native files, and the upstream TypeScript wrapper. ClubMix.ai uses an adapted JavaScript wrapper. The recording/export WebAssembly module (lame-wasm.mjs) contains the upstream release bytes. The browser WAV-to-MP3 tool uses a separate build from the patched source in this archive (lame-cbr-wasm.mjs) with LAME constant-bitrate encoding. SHA-256 of the original lame-3.100.tar.gz: ddfe36cab873794038ae2c1210557ad34857a4b6bdc515785d1da9e175b1da1e SHA-256 of the upstream src/mp3.wasm (77,855 bytes): 58723e5098b38b16ff335c30806214cc69166d40b4e972fdae39f4d429c34bb6 SHA-256 of the ClubMix src/mp3-cbr.wasm (84,736 bytes): e0f5f48cfda668f60c891cc1b2221ea27da1470b8b174f9d578a8b2c8c4d0428 To build or modify the encoder, extract this archive in a scratch directory. Use bash, curl, tar, shasum, patch and wasm-opt (Binaryen). Put the bundled LAME tarball at native/.cache/lame.tar.gz and run bash native/build.sh. The script downloads wasi-sdk 34.0 from the upstream wasi-sdk release and builds src/mp3.wasm. Use bash native/build.sh --cbr for src/mp3-cbr.wasm. This reapplies lame.patch to a clean LAME source tree. The shipped CBR build uses CLUBMIX_SKIP_WASM_OPT=1 with the compiler optimization flags in native/build.sh. A different toolchain or wasm-opt version can produce different binary bytes. To replace the encoder, keep the JavaScript ABI defined by native/encoder.c. Save the replacement binary as base64 in a JavaScript module named lame-wasm.mjs which exports that string as its default export. For example, with Python 3, run this command from the build directory: python3 -c 'from pathlib import Path; from base64 import b64encode; print("export default " + repr(b64encode(Path("src/mp3.wasm").read_bytes()).decode("ascii")) + ";")' > lame-wasm.mjs For a CBR build, read src/mp3-cbr.wasm and write lame-cbr-wasm.mjs instead. The worker loads the selected encoder as a separate module.