The host wouldn’t like it to change the latency compensation during playback (and like Xenakios mentioned, in that case it would most likely ignore that).Īlso be aware, that latency compensation obviously only works for recorded material. PrepareToPlay is the right moment, since that is, where you know the actual sampleRate to convert your mili seconds into samples, and it is before the processing starts. 'Ideally in prepareToPlay you call setLatencySamples() 8 to tell the host, how many samples latency you will add. Of course in order for this to work you'll need to report some latency and then balance the latency inside your plugin with some delay buffer.' You push into the unprocessed, process when you can, then pull out the required number from the processed buffer. you have an 'unprocessed' buffer and a 'processed' one. 'If you need a certain number of samples to process an effect one option is to push samples into a FIFO and then read them out when you have enough. Well.you know the rest!Īs a producer I can't see the exact solution.įeels like reporting latency to DAW is the way: Tried my first FX plugin in FL yesterday. Just wondering how they can handle it?! I mean.99% of what I'm using has got zero latency. Almost none plugin with latency.Īnd if there is latency - it is only 5ms or something. Maybe someone could contact devs of plugins with no latency issues in FL?!