atsushieno / fluidsynth-midi-service-j

JNA-based fluidsynth MIDI device service effort
MIT License
26 stars 8 forks source link

bogus removal of sf2 packaging #14

Closed atsushieno closed 5 years ago

atsushieno commented 5 years ago

I thought sf3 support is working, but it turned out not to be. SF3 support is enabled only if fluidsynth is built with libsndfile, which is not the case on my build script. What hid it from me was that the debugging build instant run had the stale sf2 asset there.

There will be libsndfile build as part of fluidsynth Makefile.android lines.

atsushieno commented 5 years ago

The latest amidi branch contains support for SF3 working - that means, libsndfile is not built along with libogg, libvorbis and libflac (otherwise libsndfile does not build with compressed audio support).

However, loading FluidR3Mono_GM.sf3 takes like 3 minutes on x86 emulator (whereas loading FluidR3_GM.sf2 takes like 5 secconds). It looked like the entire loader were broken (but it isn't). This delay is not really acceptable.

atsushieno commented 5 years ago

Actually android { aaptOptions { noCompress 'sf3' } } makes it much better, it's not < 10 sec. Still longer than sf2 but considering the apk size it is acceptable.