At Mon, 17 Sep 2001 17:37:23 -0600,
Jack Moffitt wrote:
>
> > There is still the same amount of drift though.
>
> I have calculated the drift:
>
> the interval in microseconds is calculated by
> snd_pcm_timer_resolution_chage() like so:
>
> 1000000000 * period / rate
>
> and truncated to an integer. for a period of 32 and a rate of 44100,
> this means we are throwing away .58276643 microseconds per period.
Isn't it in nanoseconds (1e-9)?
If so, the following drift will be 1/1000...
> There are 1378.125 periods per second, which means we lose about 803
> microseconds per second.
>
> Over a five minute song, we lose about 240 milliseconds, which is _very_
> noticeable. Every minute we'll lose 48ms.
>
> With a period of 128, the drift is only 38ms over five minutes, or 6.8ms
> a minute.
>
> jack.
Takashi
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel