Latency and tail length?

#1

If we report a latency of X samples, should we report a tail length of (X / sampleRate) seconds in getTailLengthSeconds()? Not sure if those are related or not, but I was thinking that if our output is delayed by X samples relative to the input, then there would be X samples left over after the input stops before we’re done outputting. Is that the case?

0 Likes

#2

I would expect the host to do the “right thing” with just the latency amount. The tail length is intended for plugins like delays or reverbs which have an actual tail but not necessarily a look-ahead or other latency.

1 Like