From: Clemens Ladisch <clemens@ladisch.de>
To: Enno Fennema <ennofennema@tele2.nl>
Cc: alsa-devel@alsa-project.org
Subject: Re: snd_pcm_wait function
Date: Sat, 10 Nov 2012 18:20:12 +0100 [thread overview]
Message-ID: <509E8CCC.5040003@ladisch.de> (raw)
In-Reply-To: <509E8445.8050001@tele2.nl>
Enno Fennema wrote:
> The documentation says this functions waits for the pcm to become ready for I/O.
> I am not sure what ready means in this context.
Ready for playback/capture, i.e., some frames are available.
> Is there a function to wait for entering the SETUP state. In particular I would
> like to wait for pcm_snd_drain to finish.
This is not possible. alsa-lib is not thread-safe, so while another thread is
executing snd_pcm_drain, you cannot access the same PCM device.
Let the other thread send a message after snd_pcm_drain has finished.
Regards,
Clemens
next prev parent reply other threads:[~2012-11-10 17:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-10 16:43 snd_pcm_wait function Enno Fennema
2012-11-10 17:20 ` Clemens Ladisch [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-11-12 7:23 Enno Fennema
2012-11-12 7:36 ` Clemens Ladisch
2012-11-12 20:57 ` Trent Piepho
2012-11-13 0:15 ` Daniel Sanz
2012-11-13 4:45 ` Trent Piepho
2012-11-16 10:41 ` Daniel Sanz
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=509E8CCC.5040003@ladisch.de \
--to=clemens@ladisch.de \
--cc=alsa-devel@alsa-project.org \
--cc=ennofennema@tele2.nl \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox