Our VST3 plugin uses JUCE framework and it sets the plugin latency using "setLatencySamples(int newLatency)" when the plugin is loaded in CuBase.
Our plugin works normally with the pre-defined latency but it doesn't work when we turn on "Compensate Delay" in CuBase. The pre-defined latency is still the same in our plugin when the "Compensate Delay" on, which seems to make the plugin disabled. If we try 0 (zero) as the pre-defined latency in our plugin, it works fine with "Compensate Delay" in CuBase.
Is this a bug in CuBase, or are we missing something for CuBase?
In addition, we are using a number 16385 as a latency on our plugin by default.
We have also tried a lower number such as 1024 as a latency to see if Cubase is handling okay with "Compensate Delay" on, but we had no luck.