Old 12-18-2012, 01:24 PM   #1
midix
Human being with feelings
 
Join Date: Feb 2011
Posts: 7
Default 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.
midix is offline   Reply With Quote
Old 12-18-2012, 01:52 PM   #2
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 15,721
Default

Off the top of my head, the best way to handle PDC relating to REAPER is to increase the initialDelay as necessary within the processSamples. Decreasing initialDelay will have no effect, as at the moment REAPER won't reduce the latency until the next playback start.
Justin is offline   Reply With Quote
Old 01-31-2013, 10:04 AM   #3
chronocepter
Human being with feelings
 
chronocepter's Avatar
 
Join Date: Apr 2010
Posts: 232
Default

see reacomp when you tweak the pre-comp knob > 0 then return to 0
better this way I guess.
__________________
"Another pointless experiment in synthetic stupidity." - Piz
chronocepter is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:58 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.