Reset
This function is used to "reset" state of a filter, clear buffers, etc. Say, you have some buffered data, that you work with, and suddenly it becomes obsolete: the sample rate has changed or buffer size, etc.
- // the measured level
- double level=0;
- level=0; // reset level to zero
- }
As Blue Cat Audio said: "Reset is called when the host needs to reset the state of the plug-in. Typically before restarting playback from another location or after initialization. But it depends on the host application."
In my experience, it's called right after "initialize" when the script is loaded, when sample rate or buffer size has changed.