snd_pcm_writei vs snd_pcm_mmap_writei
Quoted 2 lines · Dino
So i have to use the pairs:
snd_pcm_mmap_beginsnd_pcm_mmap_committo make use of a "real" mmap pcm, instead ofsnd_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
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_beginsnd_pcm_mmap_committo makeuse
Quoted 1 line
of a "real" mmap pcm, instead of
snd_pcm_mmap_writei?
Quoted 9 lines
Yes.
snd_pcm_mmap_writeijust 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