Hey folks, I have a handful of IRs linked to a ComboBox, and I'm using:
const irs = Engine.loadAudioFilesIntoPool();
It works fine, however in the DAW if you stop the playhead and restart the track, or close the plugin window (with plugin still running) and reopen it, it seems to load those audio files, which are already loaded, thus doubling the amount of RAM in use by those files. Over time, this becomes a huge memory issue, and projects become unusable. It's saved in the plugin state, so closing and reopening the DAW doesn't solve the issue, assuming you are running the same project file.
Issue persists in Cubase, Reaper, and FL Studio.
I couldn't find a solution for this, but I thought something like
Engine.purgeAudioFilesFromPool();
above it might do the trick, so it purges before loading.
Unfortunately no such thing seems to exist.
Does anyone have a potential fix, or alternative for this? Thanks in advance.