Re: [linux-audio-dev] Calculating Latency

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] Calculating Latency
From: Paul Winkler (pw_lists_AT_slinkp.com)
Date: Thu Sep 11 2003 - 19:14:04 EEST


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)


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Thu Sep 11 2003 - 19:42:02 EEST