|
From: | sqweek |
Subject: | Re: [fluid-dev] Proposal for a new feature: lazy-loading of SoundFonts |
Date: | Wed, 18 Apr 2018 17:10:46 +0800 |
Hi all,I've finished the first draft of the dynamic sample loading. You can see the change in this pull request:If you want to try out the changes, please check out the dynamic-sample-loading branch:The implementation is actually quite simple and follows the approach that I've outlined earlier. When loading a Soundfont, everything apart from the sample data is loaded. As soon as a preset is selected for a channel, all samples of all instrument zones in that preset are individually loaded into memory. And when a preset is unselected again, all samples of all instrument zones of that preset are unloaded from memory again, unless they are still in use by another selected preset. The loading and unloading is triggered by the fluid_preset_t::notify and fluid_sample_t::notify callbacks.
[Prev in Thread] | Current Thread | [Next in Thread] |