Skip to contentSkip to conversation

snd_pcm_writei vs snd_pcm_mmap_writei

DISCUSSION Clemens Ladisch 2 participants 2 messages Apr 18, 2005 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 2 lines · Dino

So i have to use the pairs: snd_pcm_mmap_begin snd_pcm_mmap_commit to make use of a "real" mmap pcm, instead of snd_pcm_mmap_writei?

Yes. snd_pcm_mmap_writei just calls the _begin/_commit functions before/after copying the buffer. If you call them yourself, you can do something else instead of simple copying.

HTH
Clemens

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

#2 lore raw

Perfect!
BTW i suggest to modify online documentation as it's no so clear, and has some minors errors.

bye,
Dino

Scrive Clemens Ladisch <[email protected]>:

Quoted 5 lines
Quoted 1 line · Dino

So i have to use the pairs: snd_pcm_mmap_begin snd_pcm_mmap_commit to make

use

Quoted 1 line

of a "real" mmap pcm, instead of snd_pcm_mmap_writei?

Quoted 9 lines

Yes. snd_pcm_mmap_writei just calls the _begin/_commit functions before/after copying the buffer. If you call them yourself, you can do something else instead of simple copying.

HTH
Clemens

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click