Quote:
Originally Posted by JamesPeters
In other plugins that I've used, JS or VST, if there is a setting that will affect the latency, after changing that setting all that is required is restarting playback. As an example if you can try this plugin. The setting on the right for lookahead adds latency. If you turn it off it goes to zero latency. All you have to do is stop playback (if it isn't already stopped) and start it again. Latency reported to Reaper will return to 0.
https://forum.cockos.com/showthread.php?t=213269
|
Okay, after a bit more debugging I know what's happening. Reaper needs to execute the @init section in the code to register the change in pdc delay. I've currently got that disabled because I didn't want all the variables cleared on play etc.
It's the 'ext_noinit = 1' variable.
@init executes when the sample rate is changed and the plugin is made online from being offline. That's why the pdc updates in those cases. When enabled, @init also executes on play.
As a quick test I enabled @init in ReEQ but it introduced issues. I'll have to look into it.