Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: David Henningsson <david.henningsson@canonical.com>
To: Enno Fennema <ennofennema@tele2.nl>
Cc: Daniel Sanz <daniellsanz2@gmail.com>,
	Trent Piepho <tpiepho@gmail.com>,
	Clemens Ladisch <clemens@ladisch.de>,
	alsa-devel@alsa-project.org
Subject: Re: snd_pcm_wait function (really snd_pcm_draiin)
Date: Fri, 16 Nov 2012 20:10:38 +0100	[thread overview]
Message-ID: <50A68FAE.9010505@canonical.com> (raw)
In-Reply-To: <50A6695B.6080202@tele2.nl>

On 11/16/2012 05:27 PM, Enno Fennema wrote:
> On 11/16/12 11:41, Daniel Sanz wrote:
>> Thanks, Trent, I've been playing a bit with snd_pcm_drain,
>> snd_pcm_writei, blocking mode, non-blocking mode, etc. but even if I
>> ...
>
> I wanted to play a short sound and release the pcm. It works with a
> non-block drain as Clemens suggested.
>
> I noticed using gettimeofday() around drain() that it takes a bit over 2
> seconds. Rather long for a sound that only takes 0.1 sec.

That is a known pulseaudio problem; which we also noted on PulseConf a 
few weeks ago. I want to do something about it but it is not on the top 
of my priority list right now.

Are the rest of you trying with PulseAudio as well? Maybe it could be 
worth also trying the direct plughw path do see if the behaviour is 
different.


-- 
David Henningsson, Canonical Ltd.
https://launchpad.net/~diwic

  reply	other threads:[~2012-11-16 19:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-12  7:23 snd_pcm_wait function Enno Fennema
2012-11-12  7:36 ` Clemens Ladisch
2012-11-12 20:57   ` Trent Piepho
2012-11-13  0:15     ` Daniel Sanz
2012-11-13  4:45       ` Trent Piepho
2012-11-16 10:41         ` Daniel Sanz
2012-11-16 16:27           ` snd_pcm_wait function (really snd_pcm_draiin) Enno Fennema
2012-11-16 19:10             ` David Henningsson [this message]
2012-11-19 11:10               ` Daniel Sanz

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=50A68FAE.9010505@canonical.com \
    --to=david.henningsson@canonical.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=clemens@ladisch.de \
    --cc=daniellsanz2@gmail.com \
    --cc=ennofennema@tele2.nl \
    --cc=tpiepho@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