All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Looijmans <mike.looijmans@topic.nl>
To: alsa-devel@alsa-project.org
Subject: Re: buffer time
Date: Tue, 19 Aug 2014 15:58:02 +0200	[thread overview]
Message-ID: <53F357EA.4040102@topic.nl> (raw)
In-Reply-To: <1408394081.4025.7.camel@debian>

On 08/18/2014 10:34 PM, Joël Krähemann wrote:
> What's the correct buffer time to use with alsa?

Playback or capture?

Anyway, Linux performs at its very worst when faced with typical 
audio/video work, because it tends to postpone things and execute them 
in a single big chunk. This is good for throughput, as it can re-order 
everything so that less harddisk head seeks are required, but it causes 
an application that, say, writes out data at a constant but quite low 
rate, to experience latencies of well over 2 seconds on an otherwise 
idle system.

Because of that, my answer to such a question it usually: All the memory 
that you can spare.
In case of ALSA, that means get the biggest you can possibly get, 
because the DMA buffer is usually pre-allocated when the driver probed, 
so it's going to waste if you don't use it.
-- 
Mike Looijmans
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

  parent reply	other threads:[~2014-08-19 13:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-18 20:34 buffer time Joël Krähemann
2014-08-18 20:36 ` Joël Krähemann
2014-08-19 13:10 ` Clemens Ladisch
2014-08-19 13:58 ` Mike Looijmans [this message]
2014-08-20  4:25 ` Joël Krähemann

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=53F357EA.4040102@topic.nl \
    --to=mike.looijmans@topic.nl \
    --cc=alsa-devel@alsa-project.org \
    /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.