jet2jet / fluidsynth-emscripten Goto Github PK
View Code? Open in Web Editor NEWThis project forked from fluidsynth/fluidsynth
FluidSynth with Emscripten-specific patch
License: GNU Lesser General Public License v2.1
This project forked from fluidsynth/fluidsynth
FluidSynth with Emscripten-specific patch
License: GNU Lesser General Public License v2.1
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?
is there easy way to compile this to static lib for larger c++ projects ?
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?
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
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.