[alsa-devel] pthread or snd_async_add_pcm_handler

Maarten de Boer maarten at resorama.com
Wed Sep 14 16:30:53 CEST 2011


Hello,

I am doing MMAP-based full duplex audio processing. I looked at the direct_loop code in the alsa-lib/test/pcm.c example. 

Now I want to run do the audio processing asynchronously. The async_direct_loop in the example does this, but I was wondering: is there any advantage to using snd_async_add_pcm_handler over using a simple pthread?

Thanks,

Maarten





More information about the Alsa-devel mailing list