Make sure you check the sample rate on every Reset call. Some hosts (including Reaper) may initialize plugins at first with a generic sample rate (like 44.1) and later, when playback starts, re-initialize with the project sample rate.
Make sure you check the sample rate on every Reset call. Some hosts (including Reaper) may initialize plugins at first with a generic sample rate (like 44.1) and later, when playback starts, re-initialize with the project sample rate.
I call pPlug->GetSampleRate() every time I need it - does that mean I don't have to worry about doing anything on reset?
It means you don't have to worry about doing anything with the sample rate in reset. If you have a reverb or delay you might need to clear out some tails to keep garbage from showing up next time you get some audio buffers. There might be any number of things you want to do on reset if you are not handling them elsewhere. You might also have something like some buffers or coefficients that are dependent on the sample rate that are not calculated every time you process audio (because it might be inefficient to do so) and in those circumstances you would want to trigger a recalculation in reset if the sample rate changed. Basically, there is no one right or wrong answer. Evaluate your circumstances and go from there.