g-plane / flac.wasm Goto Github PK
View Code? Open in Web Editor NEWRun official FLAC tools `flac` and `metaflac` as WebAssembly, on browsers or Deno.
Home Page: https://flac.vercel.app/
License: GNU General Public License v2.0
Run official FLAC tools `flac` and `metaflac` as WebAssembly, on browsers or Deno.
Home Page: https://flac.vercel.app/
License: GNU General Public License v2.0
TL, DR; Remove the -Oz
flag.
When processing files, an error will be occurred about emscripten_memcpy_big
.
After investigation, I found that emscripten_memcpy_big
function just simply throws an error without any actual implementation. The generated code locates at flac/src/flac/.libs/flac
which is a JavaScript file without .js
extension.
If we replace the function with this snippet, it will work: https://github.com/emscripten-core/emscripten/blob/de7cbc56c3ac38b83cc3e8bbc17ac5fbb6b3bbd7/test/optimizer/applyImportAndExportNameChanges2-output.js#L194-L196 .
When searching emscripten_memcpy_big
in emscripten-core/emscripten
repository, I found some comments may help: https://github.com/emscripten-core/emscripten/blob/de7cbc56c3ac38b83cc3e8bbc17ac5fbb6b3bbd7/src/library.js#L396 . I think we enabled -Oz
flag, so emscripten won't generate any implementations.
After removing the -Oz
flag from emconfigure
command in build.sh
, it works.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.