fluid-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[fluid-dev] Feature request: Reading soundfont files from memory


From: Simon Herbers
Subject: [fluid-dev] Feature request: Reading soundfont files from memory
Date: Sat, 29 Oct 2022 16:30:17 +0200

I hope this email finds you well.

Currently I am collaborating on a project to create an android app that supports the usage of sf2 and MIDI files. The app is using the fluidsynth library via the Java Native Interface (app written in Kotlin).

I would like to use a collection of sf2 files located within my Kotlin app assets with fluidsynth functions. The fluid_synth_sfload() function needs a relative path to load files and the source directory of my file collection does not exist after compiling. Therefore I cannot access those files through a path. As far as I know there is no other way to supply a synthesizer with sound font files. The only way to use this function at the moment is by copying the files contained in the compiled .apk into a local directory of the device and supplying fluid_synth_sfload() with a path to this local directory. This results in redundancies and a loss of performance.

I propose a new feature to load a sf2 file from memory. A function that uses a buffer as input similar to the behavior of loading MIDI files from memory would greatly improve the efficiency and feel of this app.

I hope to hear your opinions soon.

Sincerely,
Simon Herbers


reply via email to

[Prev in Thread] Current Thread [Next in Thread]