Plugin delay compensation - how to reinitialize from VST?
We have developed a VST plugin and it has some controls which affect plugin delay. Developers say they are issuing ioChanged() and then setInitialDelay inside of resume().
The problem is that if delay changes while Reaper is playing back, the PDC value reported by Reaper does not change and PDC is using the old values. Only when the user stops playback, the PDC gets recalculated correctly.
It seems, that Reaper does not react to ioChanged() calls, so our resume() does not get called and we have no chance to call setInitialDelay.
How do we force Reaper to recalculate and use the new PDC whithout waiting for the user to Stop/Play manually?
Also, we would like to do it in a safe way, to avoid crashing Reaper or some other VST host which maybe reacts differently to setInitialDelay calls in the middle of playback.
Last edited by midix; 12-18-2012 at 01:38 PM.
|