Birch-san / juicysfplugin

Audio plugin (e.g. VST, AU) to play soundfonts on macOS, Windows, Linux
GNU General Public License v3.0
209 stars 27 forks source link

enable dynamic sample loading to load only samples from selected preset into RAM #55

Open mrbumpy409 opened 11 months ago

mrbumpy409 commented 11 months ago

Currently, juicysfplugin loads the entire SoundFont into RAM. This can waste a lot of RAM in cases where a single preset is used from a large SoundFont containing many presets, such as a GM bank.

FluidSynth has a setting "synth.dynamic-sample-loading" which loads only the samples from the selected preset into RAM. It would make sense to use this feature with juicysfplugin since it is designed to only load one preset at a time.

Birch-san commented 11 months ago

hm, didn't realise there was a setting for this. would solve https://github.com/Birch-san/juicysfplugin/issues/15 too.

not sure if it'd make it easier/harder to implement multichannel support (https://github.com/Birch-san/juicysfplugin/issues/17).

but I'm not myself planning any further development on this. I'm spending all my time on AI nowadays.