Reset
This function is used to "reset" the state of a filter (in EQ, etc.), clear buffers, and so on. For example, you may have some buffered data that you are working with, and suddenly it becomes obsolete due to a change in the sample rate, buffer size, or other parameters.
- // 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, the reset function is called immediately after "initialize" when the script is loaded, or when there is a change in the sample rate or buffer size.
Comments
Please, authorize to view and post comments.