From: Takashi Iwai <tiwai@suse.de>
To: Martijn Sipkema <msipkema@sipkema-digital.com>
Cc: James Courtier-Dutton <James@superbug.demon.co.uk>,
Paul Davis <paul@linuxaudiosystems.com>,
alsa-devel <alsa-devel@lists.sourceforge.net>
Subject: Re: problems using select() on alsa pcm.
Date: Thu, 25 Mar 2004 15:00:58 +0100 [thread overview]
Message-ID: <s5h65ct58md.wl@alsa2.suse.de> (raw)
In-Reply-To: <003301c41253$919b5c00$161b14ac@boromir>
At Thu, 25 Mar 2004 11:25:56 +0100,
Martijn Sipkema wrote:
>
> > >open pcm, and get a handle.
> > >
> > >snd_pcm_poll_descriptors(handle, &pfd, err);
> > >
> > >Get a poll file scriptor in pfd.
> > >
> > >select(nfds, rfds, wfds, efds, tvp);
> > >
> > >Is it possible to use this call with alsa ?
> >
> > select is generally deprecated in linux (linus says so!). but you can
> > use the same pfds in select as in poll (select is implemented in the
> > kernel using the poll code). the problem is interpreting the results
> > you get back (as noted recently for the dmix plugin).
>
> select and pselect do allow for a more accurate timeout specification.
from the spec, yes. but nsec resolution would be never implemented :)
> Why is select deprecated?
because select is just a wrapper of poll in fact (on linux)?
Takashi
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
next prev parent reply other threads:[~2004-03-25 14:00 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-25 3:39 problems using select() on alsa pcm James Courtier-Dutton
2004-03-25 4:08 ` Paul Davis
2004-03-25 9:38 ` Jaroslav Kysela
2004-03-25 14:44 ` Paul Davis
2004-03-25 15:05 ` Jaroslav Kysela
2004-03-25 15:13 ` James Courtier-Dutton
2004-03-25 15:38 ` Jaroslav Kysela
2004-03-25 10:25 ` Martijn Sipkema
2004-03-25 13:19 ` Paul Davis
2004-03-25 14:00 ` Takashi Iwai [this message]
2004-03-25 14:35 ` Martijn Sipkema
2004-03-25 21:44 ` Glenn Maynard
2004-03-25 9:36 ` Jaroslav Kysela
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=s5h65ct58md.wl@alsa2.suse.de \
--to=tiwai@suse.de \
--cc=James@superbug.demon.co.uk \
--cc=alsa-devel@lists.sourceforge.net \
--cc=msipkema@sipkema-digital.com \
--cc=paul@linuxaudiosystems.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.