Convert a latency expressed in audio frames to milliseconds at a given rate.
Used to turn an LV2 plugin's lv2:latency port (reported in samples) into ms.
Parameters
frames: number
latency in samples
sampleRate: number
sample rate in Hz
Returns number
the latency in ms (0 when the sample rate is non-positive)
Convert a latency expressed in audio frames to milliseconds at a given rate. Used to turn an LV2 plugin's
lv2:latencyport (reported in samples) into ms.