From: Takashi Iwai <tiwai@suse.de>
To: tsw@johana.com
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: I thought it would simple....
Date: Thu, 24 Jul 2003 15:48:08 +0200 [thread overview]
Message-ID: <s5hk7a82fzb.wl@alsa2.suse.de> (raw)
In-Reply-To: <20030724050325.3325.qmail@web21501.mail.yahoo.com>
At Wed, 23 Jul 2003 22:03:25 -0700 (PDT),
Tom Watson wrote:
>
> OK, here is more data. The enclosed files are:
> 1) The "minimal playback program" described in the original message,
> modified to clear the buffer, and do the "dump" of the parameters. The
> buffer size is lengthened a bit (maybe this makes a difference??)
in general, it'd better to specify proper period and buffer sizes in
hw_params. (you can use *_near() for that purpose, too, in the case
the hardware doesn't support the request size.)
note that the configuration of buffer and period sizes is often
sensitive to the card type. and they define the stability and the
latency of the application. that's why many applications have options
to set up these things.
also, calling snd_pcm_prepare() is not necessary. it's called
automatically after hw_params(). it's needed only after xrun/suspend
occurs.
many programs have the xrun recovery. in the playback direction, if
a buffer underrun occurs, snd_pcm_writei() returns -EPIPE (and
-ESTRPIPE if the suspend occurs). and ALSA drivers don't recover this
status automatically as default. you need to call snd_pcm_prepare()
to recover the status. so,
Takashi
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
next prev parent reply other threads:[~2003-07-24 13:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-23 6:54 I thought it would simple Tom Watson
2003-07-23 11:07 ` Carlo Wood
2003-07-24 5:03 ` Tom Watson
2003-07-24 13:48 ` Takashi Iwai [this message]
2003-08-11 21:30 ` Tom Watson
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=s5hk7a82fzb.wl@alsa2.suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@lists.sourceforge.net \
--cc=tsw@johana.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.