setLatencyInSamples

Class: audioPlugin

Set latency in samples reported to DAW

Syntax

setLatencyInSamples(myAudioPlugin,latency)

Description

setLatencyInSamples(myAudioPlugin,latency) sets the latency, in samples, that myAudioPlugin reports to a digital audio workstation (DAW) or other host application. Specify latency as a positive integer.

Note

Latency is reported to a host application when the reset method is called. As a best practice, call setLatencyInSamples in the reset method of your audioPlugin class.

See Also

Introduced in R2020b