[linux-audio-dev] Calculating Latency
    Paul Winkler 
    pw_lists at slinkp.com
       
    Thu Sep 11 12:35:00 UTC 2003
    
    
  
On Thu, Sep 11, 2003 at 12:12:24PM -0400, Paul Winkler wrote:
> On Thu, Sep 11, 2003 at 08:46:54AM -0700, Greg Reddin wrote:
> > What is the formula for calculating latency in Jack?  For example, I
> > start jackd with a period size of 256 and 2 periods, a sample rate of
> > 44100.  Using a mic input and FreqTweak, that's pretty close to
> > inaudible latency to my ears.  How do I calculate the actual ms value
> > of that?
> > 
> > I apologize if information is readily available.  I couldn't find it.
> 
> I believe it's sr / n * p, or for your  example,
> 44100.0 / 256 * 2 = 0.0116 seconds.
aargh I inverted it.
n * p / sr
2 * 256 / 44100
-- 
Paul Winkler
http://www.slinkp.com
Look! Up in the sky! It's HALF WOODENPOLECAT HUNTSMAN!
(random hero from isometric.spaceninja.com)
    
    
More information about the Linux-audio-dev
mailing list