I'm trying to save/restore my plugin state across DAW project sessions. On my AU class that extends AUInstrumentBase I have extended the two following methods:
Code: Select all
OSStatus SaveState(CFPropertyListRef *outData);
OSStatus IAu::SaveState(CFPropertyListRef *outData)
{
AUInstrumentBase::SaveState(outData);
}
OSStatus RestoreState(CFPropertyListRef *inData);
OSStatus IAu::RestoreState(CFPropertyListRef *inData)
{
AUInstrumentBase::RestoreState(inData);
}
What about restore? Is it only called when SaveState actually sets anything to outData? Is there any example on how to do it? So far I have only looked onto Will Pirkle books examples.
Any tips?
Thanks!
Regards,
Nuno