I'm looking for a function, where i can add my code to store my Plugin if the User safes his DAW Projekt, or is closing the Project, also I'm looking for where i can add my code if a user is loading a project with my plugin to recall the old settings.
In which file format i have to safe/load the settings?!
are already implemented but "getStateInformation" is only calling when i press the load button from the Plugin.
"setStateInformation" is called when i safe the Projekt, but i cant see a standard file Path or a standard name.
I had a second look into the AudioProcessor Api and founded:
void setCurrentProgramStateInformation(const void * data, int sizeInBytes);
void getCurrentProgramStateInformation(juce::MemoryBlock & destData);
but if i add them to my code Live is crashing when i try to safe a project with my Plugin and i cant reach booth function with a breakpoint, so it seems like I'm on the wrong place?!
So hopefully u could help me.
Have a nice week.