State.restore
void restore(Instance instance, LilvSetPortValueFunc setValue, void * userData, StateFlags flags,
const(LV2_Feature *) * features = null) @nogc nothrowRestore this state onto a plugin instance. Low overhead C callback version which is potentially real-time safe.
Parameters
instance | Target instance (may be null if only port values are applied via setValue) |
setValue | Callback for port values (may be null) |
userData | Passed to setValue |
flags | LV2_State_Flags |
features | Optional null-terminated feature array for the plugin's restore |
void restore(Instance instance, SetPortValueDelegate setValueDg, StateFlags flags, Feature[] features = null)Restore this state onto a plugin instance. Uses a delegate instead of a C callback and dynamic array of Feature structures which may result in GC allocation and is NOT real-time safe.
Parameters
instance | Target instance (may be null if only port values are applied via setValue) |
setValueDg | Delegate callback for port values (may be null) |
flags | Values from StateFlags (IsPod, IsPortable, IsNative) |
features | Optional array of Feature structures for the plugin restore |