"audio plugin demo" as VST3: elapsed-time display is confusing me


#1

I’m seeing something I can’t account for. I’ve created a new Projucer project, targeting both VST2 and VST3, and I’ve copied the .cpp and .h files over to it from “audio plugin demo”, since that’s a good start for what I want to do.

It compiles fine in Visual Studio 2017, and I can load and play both the VST2 and VST3 version in Reaper 5. But the elapsed-time field in the VST3 version is showing a very large value, and the value is continuously increasing, even when Playback is stopped, and the shown value doesn’t reset to 0 when I start or stop playback. In the VST2 version, the elapsed-time field behaves differently (it resets to 0 when I stop playback, and it remains at 0 until I start playback again).

Is this discrepancy between VST2 and VST3 by design? If not, what could be causing it?

P.S. Now I’ve tested using Cubase 8.5 as the host, and getting the same results.


Bug Report for JUCE: VST3 elapsed time
#2

See this thread: