Coder Social home page Coder Social logo

g-plane / flac.wasm Goto Github PK

View Code? Open in Web Editor NEW
18.0 18.0 0.0 150 KB

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

Shell 6.54% TypeScript 93.46%

flac.wasm's People

Contributors

g-plane avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

flac.wasm's Issues

`emscripten_memcpy_big` occurs an error

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.