View Single Post
Old 07-18-2019, 11:31 AM   #4
Nonlinear
Human being with feelings
 
Join Date: Apr 2018
Posts: 396
Default

Quote:
Originally Posted by earlevel View Post
I use GetSampleRate/SetLatency in my Reset, successfully.

You say, "also called as the last step in the constructor". I'm not sure whether that's a problem, but I think Reset is called for you (from EffectInit, I think). I don't have time to check that out, but offhand it seems the only thing you're doing different from me is calling Reset or SetLatency in the constructor.

I'm using https://github.com/earlevel/wdl-ol/tree/earlevel, but I don't think I changed anything that affects SetLatency directly.
Hmm, I will try that but I read somewhere that some hosts don’t reliably call Reset() so I’ve been intentionally calling it as the last line in my constructors. Is that bad or at least unnecessary? I need to make sure delay arrays, filters, etc. are all cleared and initialized for the current sample rate.

Last edited by Nonlinear; 07-18-2019 at 11:45 AM.
Nonlinear is offline   Reply With Quote