VSTPluginInstance question


#1

What is the line

juce_callAnyTimersSynchronously();

in the function handleCallback()

exactly doing? What is it good for? If I understand right, this will call the function timerCallback() for each and every Timer instance present in the VSTPlugin, no matter if that Timer needs to be called or not at that very moment - but what exactly is the purpose of this?

I am asking because in my app I use my own Timer class on OS X (because there were problems with the original JUCE Timer class in the past) and I want to adapt it.


#2

With your timer hack, it’s no longer any use, but with normal timers, it needs a chance to fire any pending timers when the user is dragging the mouse on the host GUI (because when doing that, the host blocks all events from reaching the plugin)