On Thu, 16 Oct 2003, Ryan Pavlik wrote:
> On Thu, 16 Oct 2003 19:54:20 +0200 (CEST)
> Jaroslav Kysela <[EMAIL PROTECTED]> wrote:
>
>
> > Don't use select() if possible. You don't know which direction is required
> > for a file descriptor. You must use snd_seq_poll_descriptors_revents()
> > which
On Thu, 16 Oct 2003 19:54:20 +0200 (CEST)
Jaroslav Kysela <[EMAIL PROTECTED]> wrote:
> Don't use select() if possible. You don't know which direction is required
> for a file descriptor. You must use snd_seq_poll_descriptors_revents()
> which mangles the used direction and reports the correct one
On Tue, 14 Oct 2003, Ryan Pavlik wrote:
> On Tue, 14 Oct 2003 20:06:00 -0500
> Ryan Underwood <[EMAIL PROTECTED]> wrote:
>
> > Silly question, but is 'npfd' the file descriptor you are polling + 1?
>
> I AM DUMB.
>
> I totally overlooked this. Simple fix, and it works great.
> Thanks. :-) You'd
Hi,
On Tue, Oct 14, 2003 at 07:41:05PM -0700, Ryan Pavlik wrote:
> On Tue, 14 Oct 2003 20:06:00 -0500
> Ryan Underwood <[EMAIL PROTECTED]> wrote:
>
> > Silly question, but is 'npfd' the file descriptor you are polling + 1?
>
> I AM DUMB.
>
> I totally overlooked this. Simple fix, and it works
On Tue, 14 Oct 2003 20:06:00 -0500
Ryan Underwood <[EMAIL PROTECTED]> wrote:
> Silly question, but is 'npfd' the file descriptor you are polling + 1?
I AM DUMB.
I totally overlooked this. Simple fix, and it works great.
Thanks. :-) You'd think I had never done this before.
So the select() ver
Hi,
On Tue, Oct 14, 2003 at 11:30:31AM -0700, Ryan Pavlik wrote:
>
> I'm using the "seqdemo.c" example from the HOWTO as a testbase.
> The main bit of code looks like this:
>
> while (1) {
> FD_ZERO(&rfds);
> FD_SET(pfd[0].fd, &rfds);
>
> if (select(npfd, &rfds, NUL
On Tue, 14 Oct 2003 11:49:37 +0200
Takashi Iwai <[EMAIL PROTECTED]> wrote:
> At Mon, 13 Oct 2003 10:53:24 -0700,
> Ryan Pavlik wrote:
> >
> > Hey, I'm currently pondering an ALSA interface for Ruby
> > (http://ruby-lang.org). Unfortunately, to do what I want, I need to
> > be able to have a file
At Mon, 13 Oct 2003 10:53:24 -0700,
Ryan Pavlik wrote:
>
> Hey, I'm currently pondering an ALSA interface for Ruby
> (http://ruby-lang.org). Unfortunately, to do what I want, I need to
> be able to have a file descriptor for select(). I've tried using the
> fds returned by snd_seq_poll_descripto
Hey, I'm currently pondering an ALSA interface for Ruby
(http://ruby-lang.org). Unfortunately, to do what I want, I need to
be able to have a file descriptor for select(). I've tried using the
fds returned by snd_seq_poll_descriptors(), but (not suprisingly) they
didn't work: select blocks indefi