All of lore.kernel.org
 help / color / mirror / Atom feed
From: Clemens Ladisch <clemens@ladisch.de>
To: Guilherme Longo <grlongo.ireland@gmail.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: Is snd_pcm_hw_params_set_period_time_near the same as sampling period?
Date: Fri, 24 Jul 2009 10:50:48 +0200	[thread overview]
Message-ID: <4A6975E8.2030208@ladisch.de> (raw)
In-Reply-To: <4A6880B0.3000903@gmail.com>

Guilherme Longo wrote:
> I am trying to understand a piece of a code  I am  studing .
> What does exactly the functions snd_pcm_hw_params_set_period_time_near  
> sets?

The period time.

> In my understand period time should be the time between 2 consecutive 
> samples,

In ALSA, a period is the interval between consecutive interrupts from
the sound card; this is the same as a fragment in OSS.

When the application tries to write/read more than than would be
available, ALSA waits until the next period boundary before checking
again.


HTH
Clemens

      reply	other threads:[~2009-07-24  8:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-23 15:24 Is snd_pcm_hw_params_set_period_time_near the same as sampling period? Guilherme Longo
2009-07-24  8:50 ` 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=4A6975E8.2030208@ladisch.de \
    --to=clemens@ladisch.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=grlongo.ireland@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 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.