VST lookahead and setInitialDelay ()

I think I need to implement a viewer in VST, but I have never done this before. I know that setInitialDelay (foo) is placed in the constructor, and then you buffer the sound, but I'm not sure what I read for the "current" sound and for "lookahead" .....

+4
source share
1 answer

So, I stated all this in my comments, but, although I have to answer this.

I set setInitialDelay () to 100. Then I populated 100 sample size buffers and read 2 points from it. A glance counted from point 0 when sound entered the system. Live audio (which the user hears) has always been 100 steps back.

This works well for my requirements. Just make sure that all array values ​​are initialized, otherwise you will hear some terrible noise coming out of your speakers.

+4
source

Source: https://habr.com/ru/post/1341410/


All Articles