* pcm transfer methods
@ 2002-07-22 8:38 Maarten de Boer
2002-07-23 10:08 ` Takashi Iwai
0 siblings, 1 reply; 4+ messages in thread
From: Maarten de Boer @ 2002-07-22 8:38 UTC (permalink / raw)
To: alsa-devel
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?
maarten
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: pcm transfer methods
2002-07-22 8:38 pcm transfer methods Maarten de Boer
@ 2002-07-23 10:08 ` Takashi Iwai
2002-11-18 18:54 ` driver's mixer interface Guilhem Tardy
0 siblings, 1 reply; 4+ messages in thread
From: Takashi Iwai @ 2002-07-23 10:08 UTC (permalink / raw)
To: Maarten de Boer; +Cc: alsa-devel
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-11-29 20:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-22 8:38 pcm transfer methods Maarten de Boer
2002-07-23 10:08 ` Takashi Iwai
2002-11-18 18:54 ` driver's mixer interface Guilhem Tardy
2002-11-28 15:53 ` Takashi Iwai
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.