View Single Post
Old 01-15-2020, 05:14 PM   #3
Nonlinear
Human being with feelings
 
Join Date: Apr 2018
Posts: 353
Default

I found the problem and it has to do with reporting plugin latency to the host.

Apparently in Wavelab 9 and Cubase 10 (and many other hosts) it is not necessary to check current plugin latency before reporting latency.

For example, in my RESET function I checked for current sample rate and then updated the host with the appropriate latency with "SetLatency()".

That works in Cubase 10 and Wavelab 9 but causes a crash in Wavelab 10.

The fix for WL 10 is to check for current latency first BEFORE calling SetLatency() like this:
if (newlatency != GetLatency()) SetLatency();

IDK if this is a new requirement of VST3 or I have just been getting away with it all along.
Nonlinear is offline   Reply With Quote