View Single Post
Old 12-29-2018, 11:49 AM   #9
Human being with feelings
Join Date: Apr 2018
Posts: 293

Originally Posted by Xenakios View Post
Yeah, just initializing in the constructor is not really enough. You have more up to date information available in the Reset call like the maximum buffer size the host is going to use and the sample rate, so that's really the proper place to do the DSP initializations.

How you deal with your variables in your Process method is up to you and what you need to do. Obviously many algorithms will need their variables to remain at their last values between the Process calls, so you should not be resetting them at every Process call. (And in that case they should be member variables of the plugin class. NEVER use global or static variables that you are going to modify in a plugin.)
OK, so is "Reset()" called by the host? If so, when? I had read elsewhere that Reset() doesn't always work -that's why I started updating everything in Process().
Nonlinear is offline   Reply With Quote