Main Content
setLatencyInSamples
Class: audioPlugin
Set latency in samples reported to DAW
Since R2020b
Syntax
setLatencyInSamples(myAudioPlugin,latency)
Description
setLatencyInSamples(
sets the latency, in samples, that myAudioPlugin
,latency
)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