From: Paul Davis <paul@linuxaudiosystems.com>
To: Johan Bilien <jobi@via.ecp.fr>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: start_threshold having no effect
Date: Tue, 21 Oct 2003 08:39:22 -0400 [thread overview]
Message-ID: <200310211239.h9LCdMWo023245@oud.linuxaudiosystems.com> (raw)
In-Reply-To: Your message of "Tue, 21 Oct 2003 11:50:54 +0200." <20031021095054.GB30326@via.ecp.fr>
>I am working on a voice over IP application. We would like delays from
>the write to soundcard to the actual playout lower than 50ms. Do you
>think it is impossible with ALSA ? With OSS free the delay we got were
>quite good, without any tweaking. But ALSA is said to have better
>support for full-duplex.
JACK routinely works with 5ms latency on low latency kernels, and 20ms
on regular kernels. its easy, as long as you understand how to write
software correctly.
>Maybe using a small buffer on the sound card should then be a better
>solution ? I tried with a buffer of 50 ms, and the playout is fine until
>for some reason the buffer gets full. At that point I get an EPIPE error
>on the next write, I then do a snd_pcm_prepare, can write again, but
>after that both reading and writing give a lot of errors, and after a
>very short while a write will block for more than one second. Are those
>ALSA related problems, or hardware ones ?
OSS has *NO* xrun detection. ALSA has it, and its turned on by
default. you need to set the stop threshold to -1, so that ALSA never
stops for xruns and never reports them.
But please note: if you get EPIPE, it means there was an xrun, which
in turn means that your application was *not keeping up with the audio
interface*. you will normally never know this under OSS, whereas ALSA
offers you the chance to find out.
-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
prev parent reply other threads:[~2003-10-21 12:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-20 17:30 start_threshold having no effect Johan Bilien
2003-10-20 22:23 ` Paul Davis
2003-10-21 9:50 ` Johan Bilien
2003-10-21 11:32 ` Jaroslav Kysela
2003-10-21 12:26 ` Takashi Iwai
2003-10-21 12:28 ` Johan Bilien
2003-10-21 12:39 ` Paul Davis [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=200310211239.h9LCdMWo023245@oud.linuxaudiosystems.com \
--to=paul@linuxaudiosystems.com \
--cc=alsa-devel@lists.sourceforge.net \
--cc=jobi@via.ecp.fr \
/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.