fluidsynth-emscripten icon indicating copy to clipboard operation
fluidsynth-emscripten copied to clipboard

Reproducing build with libsndfile

Open MengLinMaker opened this issue 1 year ago • 0 comments

I aim to reduce the WASM size with libsndfile support - at 3.1 mb currently, compared to 0.5mb default build

Now pkg_check_modules() in CMakeLists.txt will attempt to find the sndfile ".pc" file required for build. Unfortunately, Macos does not appear to provide this.

One solution is to use a package manager like vcpkg. Now I have a successful libsndfile build.

When it comes to loading SoundFont3, I think sndfile contains many unnecessary headers, leading to bloat. Since SoundFont3 contains ogg vorbis files, we really only need:

  • vorbis
  • vorbisenc
  • ogg

MengLinMaker avatar Sep 29 '24 04:09 MengLinMaker