getLatency
This function reports to the DAW the latency introduced by your plugin, if any.
- return 1024; // in samples
- }
Certain DSP algorithms (such as FIR filters, look-ahead limiters, etc) introduce a delay. This typically occurs when a collection of audio samples needs to be accumulated before processing.
If your plugin introduces such a delay, you can report it here (in samples), and the DAW will compensate for it. This ensures that all audio across tracks remains properly aligned.
For simple processing tasks, such as gain adjustments or basic distortion, which do not introduce any delay, you can return 0 or omit this function entirely.
Comments
Please, authorize to view and post comments.