开发者

VST lookahead and setInitialDelay()

I think I need to implement a lookahead system in my VST but开发者_如何学Python have never done it before. I know setInitialDelay(foo) is placed in the constructor and then you buffer audio but I'm not sure were a read from for the 'current' audio and for the 'lookahead'.....


So I've laid this all out in my comments but though I should answer this.

I set setInitialDelay() to 100. Then I filled a 100 sample size buffer and read from it at 2 points. The lookahead read from the 0 point where the audio was entering the system. The 'live' audio (that the user hears) was always 100 steps behind the lookahead.

This works well for my requirements. Just make sure that all the array values are initialized otherwise there will be some horrible noise coming out your speakers.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜