From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lee Revell Subject: Re: Wall Clock Counter Date: Fri, 15 Sep 2006 12:28:13 -0400 Message-ID: <1158337693.18762.16.camel@mindpipe> References: <705aa3f00609150906r56f1bda5nefea0fbe3251dee7@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <705aa3f00609150906r56f1bda5nefea0fbe3251dee7@mail.gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@lists.sourceforge.net Errors-To: alsa-devel-bounces@lists.sourceforge.net To: shane michael matthews Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org On Fri, 2006-09-15 at 09:06 -0700, shane michael matthews wrote: > Hello group, > > What I want to do is read the value stored in the wall clock counter > on my sound card. Searching through the alsa documentation and source > it appears that snd_timer_read is the function I want to use. From > timer.c: > > "The timer implementation uses ring buffer to store information about > timing events. In this buffer is recorded count of ticks and current > tick resolution in nanoseconds." Is the 'ticks' referred to here the > value in the wall clock counter (It seems to always be set to 5 on my > system)? If anyone could point me to more documentation I would > greatly appreciate it. The answer to this will be hardware-specific. In order for snd_timer_read() to work there must be a low level ALSA timer implementation for your sound device. What soundcard do you use? Lee ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642