Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Lee Revell <rlrevell@joe-job.com>
To: shane michael matthews <shane.michael.matthews@gmail.com>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: Wall Clock Counter
Date: Fri, 15 Sep 2006 12:28:13 -0400	[thread overview]
Message-ID: <1158337693.18762.16.camel@mindpipe> (raw)
In-Reply-To: <705aa3f00609150906r56f1bda5nefea0fbe3251dee7@mail.gmail.com>

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

  reply	other threads:[~2006-09-15 16:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-15 16:06 Wall Clock Counter shane michael matthews
2006-09-15 16:28 ` Lee Revell [this message]
2006-09-15 16:40   ` Lee Revell
     [not found]   ` <705aa3f00609151034j5a408668lf34cb095dbae582d@mail.gmail.com>
2006-09-15 17:38     ` shane michael matthews
2006-09-18 10:28       ` Clemens Ladisch
2006-09-15 16:46 ` Clemens Ladisch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1158337693.18762.16.camel@mindpipe \
    --to=rlrevell@joe-job.com \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=shane.michael.matthews@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox