COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :

Go Back   Cockos Incorporated Forums > Other Software Discussion > WDL users forum

Reply
 
Thread Tools Display Modes
Old 03-30-2020, 04:59 PM   #1
vasyan
Human being with feelings
 
vasyan's Avatar
 
Join Date: Oct 2019
Location: Sayan Mountains, Siberia
Posts: 22
Default How to call SetLatency method correctly?

I try to change the latency while the plugin is running by calling the SetLatency method with the specified number of samples, however the changes only take effect when the plugin is reloaded into the DAW. Something else needs to be done besides calling the SetLatency to make the change come straight away?
vasyan is offline   Reply With Quote
Old 03-30-2020, 05:14 PM   #2
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

It depends on the host application how they can manage to adjust for the changing latencies. What host are you testing with?
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.
Xenakios is offline   Reply With Quote
Old 03-30-2020, 08:14 PM   #3
vasyan
Human being with feelings
 
vasyan's Avatar
 
Join Date: Oct 2019
Location: Sayan Mountains, Siberia
Posts: 22
Default

Quote:
Originally Posted by Xenakios View Post
What host are you testing with?
FL Studio 20 Producer Edition v20.0.5.681
vasyan is offline   Reply With Quote
Old 03-31-2020, 08:22 PM   #4
vasyan
Human being with feelings
 
vasyan's Avatar
 
Join Date: Oct 2019
Location: Sayan Mountains, Siberia
Posts: 22
Default

The problem only occurs in VST2. Solved the problem by causing the SetLatency() with the maximum value of latency, and to support other values it was necessary to set the additional buffer, which delays the signal by the difference of maximum and required values.
vasyan 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 04:33 PM.


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