Code Monkey home page Code Monkey logo

fluidsynth-emscripten's People

Contributors

albedozero avatar antoineschmitt avatar atsushieno avatar bradhowes avatar carlo-bramini avatar chirs241097 avatar derselbst avatar devingryu avatar diwic avatar element-green avatar fabiangreffrath avatar hanappe avatar jet2jet avatar jjceresa avatar jonlatane avatar komh avatar loki666 avatar luzpaz avatar markh-de avatar mattrtaylor avatar mawe42 avatar mchehab avatar mweseloh avatar pedrolcl avatar realnc avatar rncbc avatar stekyne avatar swesterfeld avatar sykhro avatar tomcucinotta avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

fluidsynth-emscripten's Issues

Document how to reproduce build result file size

This is more of a question respectively a request for documentation than a bug report. I tried building fluidsynth-emscripten myself using the emsdk Docker image:

docker run -ti --rm -v $(pwd):/src -u $(id -u):$(id -g) emscripten/emsdk /bin/bash

Then, I used the following commands for building:

mkdir build
cd build
emcmake cmake -Denable-oss=off -DCMAKE_BUILD_TYPE=MinRelSize ..
emmake make

The build succeeds, but the file libfluidsynth-2.2.1.js is 1.1MB in size, which is much larger than what's offered in the releases of the repository (~670KB).

How can I reproduce the much smaller build?

static lib

is there easy way to compile this to static lib for larger c++ projects ?

support for sf3

When trying to load an sf3 file I get this error:

Sound font version is 3.0 but fluidsynth was compiled without support for (v3.x)

Is it possible to get the emscripten version of fluidsynth compiled with sf3 support?

Error compiling the file fluidsynth_simple.c with emscripten

Hello:

I'm trying to compile the file fluidsynth_simple.c using emscripten without using the functions of libfluidsynth-<version>.js

When I execute this command in the main directory:
emcc fluidsynth_simple.c -O1 -s WASM=1 -s ALLOW_MEMORY_GROWTH=1 -s WASM_ASYNC_COMPILATION=0 -s SINGLE_FILE=1 -s MODULARIZE=1 --bind -o prueba.js -I '/home/zay/Documents/fluidsynth-master/src/utils/fluid_settings.h'

I receive the next error:
In file included from fluidsynth_simple.c:16: ./include/fluidsynth/settings.h:101:1: error: unknown type name 'FLUIDSYNTH_API' FLUIDSYNTH_API fluid_settings_t *new_fluid_settings(void); ^ ./include/fluidsynth/settings.h:101:32: error: expected ';' after top level declarator FLUIDSYNTH_API fluid_settings_t *new_fluid_settings(void); ^ ; ./include/fluidsynth/settings.h:102:1: error: unknown type name 'FLUIDSYNTH_API' FLUIDSYNTH_API void delete_fluid_settings(fluid_settings_t *settings); ^ ./include/fluidsynth/settings.h:102:43: error: unknown type name 'fluid_settings_t' FLUIDSYNTH_API void delete_fluid_settings(fluid_settings_t *settings); ^ ./include/fluidsynth/settings.h:104:1: error: unknown type name 'FLUIDSYNTH_API' FLUIDSYNTH_API ^ ./include/fluidsynth/settings.h:105:29: error: unknown type name 'fluid_settings_t' int fluid_settings_get_type(fluid_settings_t *settings, const char *name); ^ ./include/fluidsynth/settings.h:107:1: error: unknown type name 'FLUIDSYNTH_API' FLUIDSYNTH_API ^ ./include/fluidsynth/settings.h:108:30: error: unknown type name 'fluid_settings_t' int fluid_settings_get_hints(fluid_settings_t *settings, const char *name, int *val); ^ ./include/fluidsynth/settings.h:110:1: error: unknown type name 'FLUIDSYNTH_API' FLUIDSYNTH_API ^ ./include/fluidsynth/settings.h:111:32: error: unknown type name 'fluid_settings_t' int fluid_settings_is_realtime(fluid_settings_t *settings, const char *name); ^ ./include/fluidsynth/settings.h:113:1: error: unknown type name 'FLUIDSYNTH_API' FLUIDSYNTH_API ^ ./include/fluidsynth/settings.h:114:27: error: unknown type name 'fluid_settings_t' int fluid_settings_setstr(fluid_settings_t *settings, const char *name, const char *str); ^ ./include/fluidsynth/settings.h:116:1: error: unknown type name 'FLUIDSYNTH_API' FLUIDSYNTH_API ^ ./include/fluidsynth/settings.h:117:28: error: unknown type name 'fluid_settings_t' int fluid_settings_copystr(fluid_settings_t *settings, const char *name, char *str, int len); ^ ./include/fluidsynth/settings.h:119:1: error: unknown type name 'FLUIDSYNTH_API' FLUIDSYNTH_API ^ ./include/fluidsynth/settings.h:120:27: error: unknown type name 'fluid_settings_t' int fluid_settings_dupstr(fluid_settings_t *settings, const char *name, char **str); ^ ./include/fluidsynth/settings.h:122:1: error: unknown type name 'FLUIDSYNTH_API' FLUIDSYNTH_API ^ ./include/fluidsynth/settings.h:123:35: error: unknown type name 'fluid_settings_t' int fluid_settings_getstr_default(fluid_settings_t *settings, const char *name, char **def); ^ ./include/fluidsynth/settings.h:125:1: error: unknown type name 'FLUIDSYNTH_API' FLUIDSYNTH_API ^ fatal error: too many errors emitted, stopping now [-ferror-limit=]

Any Idea of the problem?

Thank you

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.