All of lore.kernel.org
 help / color / mirror / Atom feed
* pthread or snd_async_add_pcm_handler
@ 2011-09-14 14:30 Maarten de Boer
  2011-09-14 15:06 ` Clemens Ladisch
  0 siblings, 1 reply; 2+ messages in thread
From: Maarten de Boer @ 2011-09-14 14:30 UTC (permalink / raw)
  To: ALSA development

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: pthread or snd_async_add_pcm_handler
  2011-09-14 14:30 pthread or snd_async_add_pcm_handler Maarten de Boer
@ 2011-09-14 15:06 ` Clemens Ladisch
  0 siblings, 0 replies; 2+ messages in thread
From: Clemens Ladisch @ 2011-09-14 15:06 UTC (permalink / raw)
  To: Maarten de Boer; +Cc: ALSA development

Maarten de Boer wrote:
> 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?

No; the async handler is neither portable nor recommended.
That test program ist just for testing the API.


Regards,
Clemens

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-09-14 15:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-14 14:30 pthread or snd_async_add_pcm_handler Maarten de Boer
2011-09-14 15:06 ` Clemens Ladisch

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.