Re: [linux-audio-dev] best method for timing

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

Subject: Re: [linux-audio-dev] best method for timing
From: Nick D (nixx_AT_nixx.org.uk)
Date: Wed Apr 17 2002 - 14:18:17 EEST


On Tue, 16 Apr 2002 19:08:23 -0400
Paul Davis <pbd_AT_Op.Net> wrote:

> >one remark on the code paul posted: occasionally interrupts can be
> >dropped if a higher priority thread is present on your system
> >(RT audio on a single processor for example); so you cannot just
> >assume time has advanced by 1 / rtc_frequency seconds per poll
> >return.
>
> the assumption in the code i posted is that the RTC is used only to
> provide a tick with reasonable periodicity and adequate
> resolution. the actual "current" time can only be determined by
> looking at the transport system in ardour, since we are talking about
> musical/audio time, not wall clock time.

/dev/rtc also tells us how many interrupts there were since the last read, is this not reliable enough? i assume this value will always be correct?

nick


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

This archive was generated by hypermail 2b28 : Wed Apr 17 2002 - 13:05:15 EEST