Quote:
Originally Posted by earlevel
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.