Store audio plugin settings


#1

Hi,

I have an audio plugin which can load presets. Now I want to remember the last preset file which was loaded by a user. My PluginProcessor already has a PropertiesFile object where I could possibly store the last loaded file name as a string.
However, multiple instances of a plugin may be loaded and each one may have a different preset loaded. Hence, each plugin instance will overwrite the last preset filename field of the other instances.

What do you think is best practice to store/remember plugin instance specific properties which are not parameters in general? This would also include the window size for example…

Sebastian


#2

You can just use a member variable to hold onto the preset file name, then remember to store it when the host calls getStateInformation().


#3

You can just use a member variable to hold onto the preset file name,
then remember to store it when the host calls getStateInformation().

Thanks, that worked perfectly!

Sebastian