Main Content

setLatencyInSamples

Class: audioPlugin

Set latency in samples reported to DAW

Since R2020b

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.

Version History

Introduced in R2020b

See Also