From: Clemens Ladisch <clemens@ladisch.de>
To: Maarten de Boer <maarten@resorama.com>
Cc: ALSA development <alsa-devel@alsa-project.org>
Subject: Re: pthread or snd_async_add_pcm_handler
Date: Wed, 14 Sep 2011 17:06:17 +0200 [thread overview]
Message-ID: <4E70C2E9.80203@ladisch.de> (raw)
In-Reply-To: <892B4BD9-F32C-4B24-87BF-F54EC5722330@resorama.com>
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
prev parent reply other threads:[~2011-09-14 15:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-14 14:30 pthread or snd_async_add_pcm_handler Maarten de Boer
2011-09-14 15:06 ` Clemens Ladisch [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E70C2E9.80203@ladisch.de \
--to=clemens@ladisch.de \
--cc=alsa-devel@alsa-project.org \
--cc=maarten@resorama.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.