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
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to