From: Takashi Iwai <tiwai@suse.de>
To: Timur Tabi <timur@freescale.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: How does ALSA detect underrun in OSS emulation?
Date: Mon, 25 Feb 2008 16:33:42 +0100 [thread overview]
Message-ID: <s5hhcfxt5ih.wl%tiwai@suse.de> (raw)
In-Reply-To: <47C2DD41.9070408@freescale.com>
At Mon, 25 Feb 2008 09:22:41 -0600,
Timur Tabi wrote:
>
> Can someone explain to me the exact method that ALSA uses to detect underrun
> with OSS emulation? I have a driver that reports underrun on almost every
> period when I use OSS emulation and I'm playing with a non-supported sample
> rate. So I'm assuming that maybe my hardware is playing the audio too fast or
> too slow, and the driver is returning periods before ALSA expects them. What I
> don't understand is: how does ALSA know that a period was finished too early.
> Does it use a timer, or is it purely application driven?
It's just as same as on ALSA native API, checks the validity of the
current position reported by pointer callback in
snd_pcm_period_elapsed().
Takashi
next prev parent reply other threads:[~2008-02-25 15:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-25 15:22 How does ALSA detect underrun in OSS emulation? Timur Tabi
2008-02-25 15:33 ` Takashi Iwai [this message]
2008-02-25 15:38 ` Timur Tabi
2008-02-25 15:45 ` Takashi Iwai
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=s5hhcfxt5ih.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=timur@freescale.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.