fluidsynth-midi-service-j icon indicating copy to clipboard operation
fluidsynth-midi-service-j copied to clipboard

"loading sf3 takes too long time"

Open atsushieno opened this issue 5 years ago • 1 comments

(It is going to be a potential FAQ. This issue is kept open for better visibility)

If we package soundfonts which are in SF3 format bundled as assets in the apk, loading it takes too long time. On my experience, loading FluidR3_GM.sf2 takes like 5 seconds, but FluidR3Mono_GM.sf3 takes like > 180 seconds(!).

It is due to asset compression in the apk. The extraction step is super slow. You should disable compression for those .sf3 files. They are already compressed anyways. In build.gradle:

android {
  aaptOptions {
    noCompress 'sf3'
  }
}

atsushieno avatar Apr 18 '19 11:04 atsushieno