From: Clemens Ladisch <clemens@ladisch.de>
To: John John <tobler_one@hotmail.it>
Cc: alsa-devel@alsa-project.org
Subject: Re: how many processed frames? + various thoughts
Date: Fri, 01 Oct 2010 09:03:37 +0200 [thread overview]
Message-ID: <4CA587C9.6040506@ladisch.de> (raw)
In-Reply-To: <BAY148-w10DFB4C223E0F94E5ABEB58A680@phx.gbl>
John John wrote:
> Knowing the sample rate and the processed samples, I'm able to
> calculate the clock (what do you think about this approach?).
The sound card's clock will not be exactly synchronous with the
computer's clock.
> is there a good function into alsa API which returns the number of
> processed frames?
snd_pcm_writei() does return the number of processed frames.
snd_pcm_delay() returns the offset to the position of the sample that is
currently being played.
Regards,
Clemens
prev parent reply other threads:[~2010-10-01 7:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-30 18:49 how many processed frames? + various thoughts John John
2010-10-01 7:03 ` Clemens Ladisch [this message]
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=4CA587C9.6040506@ladisch.de \
--to=clemens@ladisch.de \
--cc=alsa-devel@alsa-project.org \
--cc=tobler_one@hotmail.it \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.