From: Takashi Iwai <tiwai@suse.de>
To: Maarten de Boer <mdeboer@iua.upf.es>
Cc: alsa-devel@alsa-project.org
Subject: Re: pcm transfer methods
Date: Tue, 23 Jul 2002 12:08:24 +0200 [thread overview]
Message-ID: <s5h4reqpxif.wl@alsa2.suse.de> (raw)
In-Reply-To: <20020722103852.24bd200a.mdeboer@iua.upf.es>
At Mon, 22 Jul 2002 10:38:52 +0200,
Maarten de Boer wrote:
>
> i am going through the alsa-lib/test/pcm.c example, and i am
> wondering about the different transfer methods available. are
> there any guidelines or suggetions which method to use in
> which particular situation?
please note the following is only my understanding:
for a serious audio use, mmap ("direct" in pcm.c) is the most
efficient method, if you can use it.
but it's not supported on every environment.
the mmap model is dependent on your card/pcm.
if the card supports non-interleaved only, then the mmap must be
non-interleaved, too.
"write" (and poll) is often easier for coding and for porting from/to
other OS.
"async" would be a choice if you cannot use (or don't want) threads
but want to process other things concurrently.
although there are some restrictions, in most cases this works fine.
the latency is not ensured like a thread scheduled with a high
priority, though.
Takashi
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
next prev parent reply other threads:[~2002-07-23 10:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-22 8:38 pcm transfer methods Maarten de Boer
2002-07-23 10:08 ` Takashi Iwai [this message]
2002-11-18 18:54 ` driver's mixer interface Guilhem Tardy
2002-11-28 15:53 ` 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=s5h4reqpxif.wl@alsa2.suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=mdeboer@iua.upf.es \
/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.