How Does Latency Work?
-
How does latency reporting work in HISE (as a compiled plugin, to the DAW)?
When I check the Engine (and the DAW, as below), it says the latency is zero.
But how is that possible?
Thanks.
-
@clevername27 zero latency means that the input buffer is being processed without adding any additional latency. This is contrary to some plugins that need more audio data before they can process it - so eg. if your effect plugin relies on FFT you have to wait for 2048 samples (or whatever FFT size you need) before your plugin can do its job. In order to properly compensate this latency you will then have to report that to the host so that all other audio streams can be delayed by this amount to keep it in sync.
https://docs.hise.audio/scripting/scripting-api/engine/index.html#setlatencysamples
-
@Christoph-Hart Thank you very much.
-